AlgoViz
← Back to the lesson
🧩 Puzzle · Apply Linked List

Follow the links

A linked list has no indices — you can't jump to the middle. The only way in is the head, and the only way forward is each node's next pointer. The nodes below are scattered on purpose: ignore their positions and follow the arrows. Start at the head and click whatever next points to, again and again, until next is null.

head = 10 · follow each next pointer until it's null
10HEAD30205040
Start at the head (purple). Click the node its next arrow points to.
Purple = where you are. Amber = the node next points to. Green = visited.path: 10