The problem, in one line. Given the head of a linked list, say whether following the next arrows ever loops back instead of reaching the end. LeetCode 141.
The tell. A path that might revisit itself, and a request to use no extra memory. When you cannot afford a notebook of places visited, send two walkers at different speeds.
Included with a plan
This solution is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.