Algorithms

The moves you'll make.

Search, traverse, partition, relax. Each algorithm runs in your browser with the same controls — play, step, scrub, replay — so the trick stops being a trick and starts being a pattern you recognize.

Start here

Recommended path

New to this section? Work through these in order — each builds on the previous.

  1. 1Binary Search
  2. 2Two Pointers
  3. 3Sliding Window (fixed size)
  4. 4Breadth-First Search
  5. 5Depth-First Search
  6. 6Dijkstra's Shortest Paths
  7. 7Topological Sort

Search

1

Traversal

2

Graph algorithms

2

Optimization

2