Glossary term

What is slow and fast pointers? Meaning for developers

Two pointers that move at different speeds, usually 1 and 2 steps. They find the middle of a list in one pass and detect cycles.

Learn it properly · DSALesson 36: Reverse and Fast/Slow PointersReverse a list, find the middle, and check if the list has a loop (a cycle).

All DSA terms

Related terms

← All glossary terms, A to Z