Infosys interview question

Detecting a loop in a singly linked list

Interview Answer

Anonymous

31 Dec 2015

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