Detect and find length of a loop in a Linked List
Filed under Unthinkable Solutions
The question
Write an algorithm to detect if a cycle exists in a linked list and, if found, determine the number of nodes within that loop.
No write-up yet. Related questions below have one.
Related Unthinkable Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.