Skip to content

Glossary: Coding Interviews in JavaScript

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 meet there is a cycle.

Where the book teaches it

Related terms

CycleLinked listTwo pointers