Fundamental Algorithms8 sections · 291 units
Open in CourseQuiz: Floyd's Algorithm
Test your understanding
Check Your Understanding
In Floyd's cycle detection, after fast and slow meet, why does resetting one pointer to head find the cycle start?
- A.The meeting point is always at the cycle start
- B.Fast pointer travels exactly twice around the cycle
- C.Slow pointer is always at the midpoint of the cycle
- D.Distance from head to cycle start equals distance from meeting point to cycle start