DEV Community

Discussion on: Floyd's Tortoise and Hare Algorithm: Finding a Cycle in a Linked List

Collapse
 
fjch1997 profile image
Jingchao Feng

Can you please explain why this algorithm is correct on any graph?