The problem, in one line. Return the middle node of a linked list, and the second of the two middle nodes when the length is even. LeetCode 876.
The tell. A position measured from the middle of a chain you can only walk forward, with no length given. When the answer is “halfway”, let one pointer travel twice as fast as the other.
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.