Detect a Cycle
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
Given the head of a linked list, decide whether following the next pointers ever loops back to a node you've already seen. Explain a solution that uses constant extra space.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.