Skip to content

Glossary: Coding Interviews in Java

Fast and slow pointers

Also written: slow and fast pointers

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

Where the book teaches it

Related terms

CycleLinked list