Possible Duplicate:
Finding loop in a singly linked-list
Given is a link list which has a loop in it.
I want to find out where does the loop start (The node which is pointed by two nodes).
Please suggest solution for this with minimum complexity.
Possible Duplicate:
Finding loop in a singly linked-list
Given is a link list which has a loop in it.
I want to find out where does the loop start (The node which is pointed by two nodes).
Please suggest solution for this with minimum complexity.