FOUNDATIONS

Algorithms & DSA

Data structures and algorithms taught as playable games and runnable challenges — graphs, sorting, search and dynamic programming, the half of every interview loop you can practice.

13 pieces · 4 formats

Roadmaps 1

System Designs 1

Algorithm Games 8

Algorithm

Dijkstra: The Last Mile

Don't watch Dijkstra's algorithm — play it. Drive a courier through a living isometric city, lose the fastest route to your own instincts, then meet the Dispatcher who floods the streets to find the optimal path every time. Four acts: drive it, watch the frontier, predict the next lock, then break it with a negative cycle — with the full theory, a worked trace, and a quiz.

GraphsShortest PathPathfinding
Algorithm

Binary Search: The Vault

Don't memorize binary search — play it. Crack a vault of sorted dials, burn through guesses by instinct, then meet the Halver who throws away half the search space with every single look and finds any value in O(log n). Three acts — crack it, watch the window collapse, predict the midpoint — plus the full theory, a worked trace and a quiz.

SearchingDivide & ConquerArrays
Algorithm

Quicksort: The Pivot Pit

See quicksort actually work — then drive it. Watch the pivot partition an array in place, smaller-left and larger-right; pick your own pivot and feel how its position sets the balance; then feed it an already-sorted list and watch a fixed pivot melt down to O(n²) — and fix it with one random line. Three acts — watch the pivot, pick the pivot, break the worst case — plus full theory, a worked trace and a quiz.

SortingDivide & ConquerRecursion
Algorithm

Merge Sort: The Cascade

Don't read about merge sort — play it. Watch single-element runs cascade upward into one sorted array, merge two sorted halves by hand by always taking the smaller front, then prove the payoff: O(n log n) on sorted, reversed and shuffled input alike — the guarantee quicksort can't make. Three acts — watch the cascade, merge two runs, prove the guarantee — plus full theory, a worked trace and a quiz.

SortingDivide & ConquerRecursion
Algorithm

BFS: The Flood

Don't memorize breadth-first search — play it. Find your own way through a maze, then release the flood that spreads from the start in rings and touches the exit by the shortest path every time, then watch depth-first search dive deep and miss it. Three acts — navigate it, release the flood, BFS vs DFS — plus the full theory, a worked trace and a quiz.

GraphsBFSPathfinding
Algorithm

A* Search: The Ascent

Don't memorize A* — fly it. Orbit a real 3D mountain, climb it by instinct, then meet the Pathfinder who folds one optimistic guess into Dijkstra's flood so the whole search leans straight at the summit. Four acts in live 3D — climb it, watch the heuristic beat the blind flood, predict the lowest-f pop, then break optimality with a heuristic that lies — plus full theory, a worked trace and a quiz.

GraphsShortest PathPathfinding
Algorithm

Sieve of Eratosthenes: Prime Time

Find every prime under 100 without dividing once. Hit play and watch the multiples fall away in cheerful waves while the primes light up gold — whatever's left standing is prime. A playable take on the 2,000-year-old sieve, with the theory, a worked example and a quiz.

Number TheoryPrimesMath
Algorithm

Build Order: DFS & Topological Sort

Don't memorize topological sort — play it. Schedule eight interdependent build tasks by hand and feel the constraints bite, then let a depth-first search dive to the bottom of every dependency and surface a valid build order by reversing its finish times. Three acts — schedule it yourself, watch DFS reverse-post-order it, then add one bad edge and watch it detect the cycle and refuse — plus full theory, a worked trace and a quiz.

GraphsDFSTopological Sort

Coding Challenges 3

More in Foundations

← Browse all topics