Interview Problem Walkthroughs
June 19, 2026· 4 min readDetecting a Cycle in a Linked List: Floyd's Tortoise and Hare
Two pointers, one slow and one fast, are all it takes to detect a cycle in a linked list in O(1) space — no hash set required. Here's why it actually works, not just that it does.
READ_POST