🌀 Loop Trap Labyrinth
Floyd's Algorithm: If fast and slow collide, a cycle exists!
With Cycle
No Cycle
🐢
Slow (1 step)
🐇
Fast (2 steps)
🔴
Cycle nodes
Ready to detect cycle
Reset
Step
Auto Detect