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.
Trees
6 visualizationsBST Insertion
intermediateSmaller left, larger right — insert by following one path.
O(log n)O(n) space
BST Search
intermediateOne path from root to leaf — never visit both children.
O(log n)O(1) space
BST Deletion
advancedThree cases: leaf, one child, or the inorder successor.
O(log n)O(n) space
Tree Traversals
intermediateIn-order, pre-order and post-order depth-first walks.
O(n)O(h) space
Level-Order Traversal
intermediateBreadth-first: read every node level by level using a queue.
O(n)O(n) space
AVL Tree Rotations
advancedRotate whenever a subtree gets more than one level taller.
O(log n)O(n) space
Not sure where to start?
Follow the guided paths — beginner, intermediate and advanced — in order.