Infosys Interview Question

Detecting a loop in a singly linked list

Interview Answer

Anonymous

Dec 31, 2015

By taking two pointers and moving one pointer by one step and another pointer by two steps - Rabbit and Hare method