
A courier arrives in a town where everything is something that needs keeping, and discovers that deciding where to put it is the entire job. No data structures yet — just the reason they exist.
One long street of identical houses, numbered from zero. What an address is, what it is not, and the two rules about it that every data structure in this course is built to exploit.
The town measurer counts doors opened, not seconds, and his body size is the growth curve. Five sizes, introduced once here and reused in every module for the rest of the course.
Pip has twenty parcels, nowhere to put them, and somebody at the counter who wants number seventeen. The story video — no code, no notation.
Why one knock reaches any parcel on the terrace, what every other operation actually costs, and the one input that ruins it. The mechanism video — diagrams, no code.
The Python list is Indi’s terrace, and you have been using it all along. Indexing, slicing, the two costs that bite real code, and the four gotchas that come from not knowing it is a terrace.
The parcel numbered three and a half, and the afternoon it cost. Then a family who do not live next door to each other at all — and the one question they cannot answer.
What a node is, what the nothing at the end is for, and what happens when a lemur lets go. Then the measured truth about chains, which is not the usual story.
Build one in forty lines, learn the three-pointer reversal, then delete it in favour of the one import that does the same job in C.
Six wrong labels, in order, and no way to remember which was which — except the last one. The story video: no code, no notation, and the word “stack” is never spoken.
Three operations, one move each, because the top is the only door. Then the three real stacks that are all the same tower — undo, the back button, and the one inside the machine you are watching this on.
Two method names you already know, and then the three things worth building: a bracket checker, an undo/redo pair, and a real traceback read as a tower.
The print shop serves whoever shouts loudest, and one resident has been waiting since opening. The story video — no code, no notation, and an ambulance at the end that nobody resolves.
Three operations that should each cost one move — and the naive way to build a queue that makes one of them cost everything. Then the ring that fixes it, and what a full queue is trying to tell you.
One import, two method names, and the measured cost of getting the end wrong. Plus a rolling window, a hand-rolled ring buffer, and the wavefront written out.
Pip has a name and every arrangement she owns is addressed by position. Even sorting the wall only gets her to eleven questions — and then the postmaster does it in one, without reading anything.
Inside the crank: the three properties that matter, why collisions are a certainty, the two ways to survive them, and the two things a wall of pigeonholes gives up.
The dict you have used since week one is the wall of pigeonholes. The measured scaling, the four idioms worth knowing, why a list cannot be a key, and an inverted index in six lines.
Two questions nobody in Byteville can answer: who lives between forty and sixty, and who comes next after Wren. Then an oak tree wins Higher-or-Lower in ten questions.
The vocabulary, the one promise that makes a tree searchable, the walk that comes out sorted — and a measurement of what sorted input does to it, which is worse than anybody guesses.
Recursive insert and search, the walk that comes out sorted, the same walk with an explicit stack, and the degeneration reproduced in four lines. Then what to actually use.
The ambulance from module four, finally dealt with. A broken arm should not wait behind a splinter — and re-sorting the whole waiting room every time somebody arrives is not the answer.
One promise instead of total order, two movements that cost a handful of swaps, and the moment the clipboard turns out to be living on Indi’s terrace with no pointers at all.
One import, two functions, and a plain list underneath. Then the min-heap-only workaround, the tuple tie-break that raises TypeError, and top-K on a million.
A delivery across town, and every arrangement Pip owns breaks at once. Roads loop, several routes work, and some are one-way — and then she walks in a circle three times.
How to write a map down, why the obvious way wastes 99.7% of its space, and then the payoff: two completely different searches that are the same instructions with one word changed.
A dict of lists, eight lines that do both searches, and the shortest route out of a parent map. Then cycles, components, and when to stop writing your own.
The power fails on the busiest delivery day of the year, and five problems arrive at once. Nothing new is taught — this is the episode where you notice you already know the answers.
Four questions that pick a structure, the whole course as one page of costs, and the three wrong choices real code makes most often — each one measured earlier in this course.
Disclaimer: This course contains the use of artificial intelligence.
Data structures don't have to be scary. In this course you follow Pip, a courier who has just arrived in the town of Byteville, where every problem is really a question of where to put things. Each neighbour Pip meets is a data structure in disguise, and by the end of the course you will know exactly which one to knock on for any problem you face.
Every module follows the same three-step pattern, so you always know where you are:
The story – a short animated episode that shows the problem before any code or notation appears.
The mechanism – clear diagrams that explain how the structure works and what each operation really costs.
The Python – the same idea in real code, including the built-in tools you should actually use and the traps that catch working programmers.
What you will cover
Memory, addresses and Big-O growth, explained with the O-gre, the town measurer
Arrays and Python lists
Linked lists and collections.deque
Stacks: undo, the back button and reading a real traceback
Queues and ring buffers
Hash tables: how dicts and sets find anything in one step
Trees and binary search trees
Heaps and priority queues with heapq
Graphs, breadth-first search and depth-first search
A capstone episode where you choose the right structure for five problems at once
The course is about two hours of focused, bite-sized video, with no filler. You only need basic Python to follow along. If you have ever memorised a Big-O table without really understanding it, or felt lost the moment someone said "just use a heap", this course is for you.