Linked List Cycle — Fast & Slow Pointers

Determine whether tracing the links from the opening step ever returns to a step already visited instead of ending at a dead end.

Fast & Slow Pointers · Easy

More in Fast & Slow Pointers

All algorithm problems