Find where the loop begins.
transcript
Slow and fast met on node three. But the loop begins on node two. Here is how to find it. Meeting is not enough.
Slow and fast stand on three. The meeting node is anywhere in the loop. It is not the start. Four is also in the loop.
Leave slow on three. Start a new walker on the head. Both take one step at a time. Fast is done. Slow now takes one step, not two. Slow and the walker share one speed.
One step: one, and four. Two steps: both on two. That is where the loop begins. Both took two steps.
The tail has two nodes. Slow is two nodes short of the start. Both need two steps. The loop has three nodes.
Find the meeting node. Restart one walker at the head. Step together until they meet. Then return that node.
Meet, restart, meet. Not the meeting node. Try it in the sandbox. Full breakdown in the lecture.