Explain how finding cycle start node in cycle linked list work?

Posted by Passionate programmer on Stack Overflow See other posts from Stack Overflow or by Passionate programmer
Published on 2010-05-29T18:47:19Z Indexed on 2010/05/29 20:02 UTC
Read the original article Hit count: 230

Filed under:
|

I understand that Tortoise and Hare's meeting concludes the existence of loop, but how does moving tortoise to beginning of linked list while keeping the hare at meeting place, followed by moving both one step at a time make them meet at starting point of cycle?

© Stack Overflow or respective owner

Related posts about linked-list

Related posts about cycle