Skip to content

Glossary: Coding Interviews in Rust

Fast and slow pointers

Also written: 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 in a cycle the fast one laps the slow one.

Where the book teaches it

Related terms

CycleTwo pointers