Measuring the length of a "loop" in a linked list in $O(n)$ Time?
There is a surprisingly simpler solution! Are you familiar with the tortoise and hare algorithm?
Start thinking from there: Understand this algorithm and why it works, and then you might get an idea or two for the problem