Every exercise in this section came down to a few references and the order you moved them in. Here’s the question that cracked each one:
| Exercise | The question that unlocked it |
|---|---|
| Find the Middle of a Playlist | Where is the slow runner when the fast one runs out of list? |
| Reverse a Linked List of Undo Steps | Which reference do I have to save before I overwrite next? |
| Remove an Item Counted From the End | Which node sits right before the one I’m removing, and what if there isn’t one? |
| Detect a Redirect Loop | Have I come back to this exact hop, or only to a hop with the same path? |
A quick self-check: think of the test that stayed red the longest for you. Which assumption in your code did it break? Interviewers often ask exactly that kind of question, and it’s a lot easier to answer once you’ve talked it through.
Want a second pair of eyes on your Linked List work?
Every node here had at most one next reference. In the Trees section, a node can point to many, and recursion becomes the natural way to follow them.