Reqflow
Start here · ~8 min
Binary Search

The clearest intro to the visualizer. Step through midpoints, discard a half, and watch the code line highlight with you.

Open visualizer →
Filter:

Complexity at a glance

Compare time and space complexities across all algorithms. Click a column header to sort.

AlgorithmTimeSpace
Binary SearchO(log n)O(1)View →
Linear SearchO(n)O(1)View →
Two Pointers: Pair SumO(n)O(1)View →
Sliding Window: Max SumO(n)O(1)View →
BFS: Level-Order TraversalO(n)O(n)View →
DFS: Pre-order TraversalO(n)O(h)View →
Merge SortO(n log n)O(n)View →
Bubble SortO(n²)O(1)View →
Selection SortO(n²)O(1)View →
Insertion SortO(n²)O(1)View →
Quick SortO(n log n) avgO(log n)View →
Stack: Push, Pop, PeekO(1) per opO(n)View →
Queue: Enqueue, Dequeue, FrontO(1) per opO(n)View →
BST: SearchO(h)O(h)View →
BST: InsertO(h)O(h)View →
Complexity:O(1), O(log n)O(n)O(n log n)O(n²)+