Visualize an algorithm
Every entry below runs on the same deterministic execution engine: generate all steps up front, then step forwards, backwards and through the code with the exact state each moment produced.
Linked Lists
5 visualizationsSingly Linked List
beginnerNodes with one pointer: traverse, insert and delete.
O(n)O(1) space
Doubly Linked List
intermediateEach node links backwards as well as forwards.
O(n)O(1) space
Circular Linked List
intermediateThe tail points back at the head — a closed loop.
O(n)O(1) space
Reverse a Linked List
intermediateFlip every pointer with three variables — a classic interview question.
O(n)O(1) space
Find the Middle Node
intermediateFloyd's tortoise and hare — two pointers at different speeds.
O(n)O(1) space
Not sure where to start?
Follow the guided paths — beginner, intermediate and advanced — in order.