Skip to content

Glossary: Coding Interviews in JavaScript

Cycle

Also written: loop in a linked list

A linked list whose last node links back to an earlier one, so walking it never ends. Fast and slow pointers detect it because the fast one eventually meets the slow one.

Where the book teaches it

Related terms

Fast and slow pointersLinked list