Skip to content

Glossary: Coding Interviews in C++

Fast and slow pointers

Also written: fast/slow pointers, slow and fast pointers

Walking a linked list with two pointers, one moving one node per step and the other two. When the fast one reaches the end, the slow one is at the middle, and if there is a cycle they meet.

Where the book teaches it

Related terms

CycleLinked listTwo pointers