The idea
Key formulas
Head insertion
Traversal
Loading lessons…
Just a moment, getting everything ready. The first load can take up to a minute.
Data structures and algorithms
Explore nodes, next pointers, constant-time head insertion, and linear traversal.
A singly linked list stores each value in a node with a pointer to the next node. The head identifies the first node; the last points to null. Inserting at a known head takes constant time, while finding a position by traversal takes linear time.