Skip to content

Computer Science

Algorithms and data structures, drawn as pictures before they become code. Start with the cost model, then build the structures that make operations cheap: arrays, lists, hash tables, trees, and heaps. Finish with algorithms you can run on screen: sorting, graph search, and dynamic programming.

9 lessons · 4 playgrounds · no account, no setup

Start with the sorting playground

One array, four algorithms. Run the same input through bubble, insertion, merge, and quick sort and compare the operation counters instead of guessing from the clock.

Foundations

The vocabulary for talking about cost before the data structure arrives

Data Structures

Arrays, lists, hash tables, trees, and heaps: the shapes that make operations cheap

Algorithms

Sorting, graph search, dynamic programming, and union-find, with the counters and paths on screen

Interactive playgrounds

Four solvers you can drive directly. Every comparison, visit, heap step, and table entry is computed, not typed into a table.

How to use this track

Each lesson follows the same rhythm: a picture first, then the definition and the invariant, then a worked example with the numbers checked, then practice. Code appears only when it makes the invariant clearer; the visuals and the counters carry the intuition.

The next natural additions are weighted shortest paths (Dijkstra), topological sort, balanced-tree implementations, and more dynamic-programming patterns. The sorting, graph, heap, and DP playgrounds already share the same trace-and-solver style, so a new algorithm can reuse the same format.

Site soundtrack