DSA · Reimagined
Linked Lists intro time O(n) space O(1)

Traverse a Linked List

A linked list is a chain of nodes; each node holds a value and a pointer to the next one. You cannot jump to index 5 — you must start at the head and follow pointers until you reach ∅.

7
0
3
1
9
2
4
3
head

A list of 4 nodes. Each points to the next; the last points to ∅.

1 / 6

Practice

Machine twin: /dsa-viz-v2/linked-list-traverse.json — the full deterministic run as structured data.