๐Ÿ”— Floyd's Cycle Detection on a Linked List
Linked List O(N) ยท O(1) space Step 0/0
๐Ÿ“Š Linked List
slow and fast start at head
๐Ÿ—‚ State
Phase 1: fast moves 2 steps, slow moves 1 step. If they meet โ†’ cycle exists.
๐Ÿ’ป Code
Click Next Step to start
0/0

Keyboard: โ†’ Next   โ† Prev   R Reset