Skip to content

Glossary: Coding Interviews in Rust

Cycle

Also written: loop in a linked list

A linked list whose last node links back to an earlier one, so a plain walk never ends. Fast and slow pointers detect it when they meet.

Where the book teaches it

Related terms

Fast and slow pointers