AAlgoLoopSpaced repetition for LeetCode

Fast & Slow Pointers

Two pointers moving at different speeds (one step versus two) detect a cycle, find the midpoint, or locate the kth-from-end node in a single pass and O(1) space. It's the go-to for linked-list cycle and middle questions.

7 LeetCode problems solved with the Fast & Slow Pointers pattern. Practice them with spaced repetition so the pattern sticks.

See the full solution

The complete approach, reference solutions in 5 languages, and a step-by-step visualization — then add this problem to your spaced-repetition schedule.

Start free →