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.
Glossary: Coding Interviews in Rust
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.