Visual course · CS fundamentals

Data structures & algorithms.

The CS-interview core, made visual. Seven short episodes build the data structures every engineer is expected to know — hash tables, trees, heaps, tries — then the two ideas that tie them together: how to measure cost with Big-O, and how graphs and dynamic programming unlock the hard problems. Every episode is embedded here and paired with an interactive game you can actually play.

7 episodes ~90 min Watch + play Free · no sign-up
Your progress0 / 7 complete

What you'll master

By the end you'll know not just what each structure is, but when to reach for it and what it costs: O(1) lookups with hash tables, O(log n) ordered search with balanced trees, the priority queue behind schedulers, prefix search with tries, the memory-for-time trade of dynamic programming, and the graph traversals underneath maps and networks. Each idea has a companion interactive so you can drive it, not just watch it.

Hash tablesBig-OBinary search treesBalancingHeapsPriority queuesTriesDynamic programmingGraphsBFS / DFS
The curriculum

Seven episodes, in order

01
Episode 1 · Hash Tables

How a Dictionary Finds Anything Instantly

Hash a key to a bucket and you jump straight to the value — no scanning. That's the O(1) magic behind every dictionary, set and cache. Understand hashing, collisions and load factor and a huge swath of "how is this so fast?" stops being mysterious.

What you'll learn
  • Hashing a key to a bucket
  • Collisions + how they're resolved
  • Load factor and resizing
02
Episode 2 · Big-O

The Only Math You Need to Reason About Speed

Big-O is how you talk about scaling: throw away the constants and ask what happens as n gets huge. It's the difference between code that survives production and code that falls over the first time the data gets big — and it's simpler than it looks.

What you'll learn
  • Growth rates from O(1) to O(n!)
  • Why constants don't matter at scale
  • Reading the cost of a loop at a glance
03
Episode 3 · Binary Search Trees

Keeping Data Sorted and Searchable

A binary search tree keeps data ordered so you can find, insert and delete in O(log n) — as long as it stays balanced. See exactly how a naive tree degrades into a slow list, and how self-balancing trees keep the guarantee.

What you'll learn
  • Ordered insert / search / delete
  • Why an unbalanced tree becomes a list
  • Self-balancing (AVL) in action
04
Episode 4 · Heaps

Always Grab the Next-Best in O(log n)

A heap is a tree that always keeps the smallest (or largest) item at the top, so you can pull the next-best in O(log n). It's the engine inside priority queues, task schedulers and Dijkstra's shortest path — anywhere "what's next?" has to be fast.

What you'll learn
  • The heap property + sift up/down
  • Priority queues built on heaps
  • Heapsort as a bonus
05
Episode 5 · Tries

The Tree That Powers Autocomplete

A trie is a tree keyed by the characters of a string, so words that share a prefix share a path. That structure is what makes autocomplete, spellcheck and IP routing fast — anything that needs to search by prefix instead of by whole key.

What you'll learn
  • Prefix sharing along a path
  • Insert + prefix lookup
  • Where tries beat hash tables
06
Episode 6 · Dynamic Programming

Turning Exponential Into Polynomial

Dynamic programming is the technique that turns exponential brute force into polynomial time by remembering sub-answers instead of recomputing them. The moment you learn to spot overlapping subproblems, DP stops being the scary interview topic and becomes mechanical.

What you'll learn
  • Overlapping subproblems + optimal substructure
  • Memoization vs tabulation
  • Classic patterns (knapsack, edit distance)
07
Episode 7 · Graphs · Finale

Everything Is a Graph

The finale ties the arc together: a tree, a heap, a trie are all just graphs with rules. BFS and DFS are how you walk them, and shortest-path algorithms are how you find your way — the tools underneath maps, social networks and dependency resolution.

What you'll learn
  • Nodes, edges, and why everything reduces to a graph
  • BFS vs DFS traversal
  • Shortest paths (Dijkstra)

Watched it? Now play the whole set.

Every episode has a companion interactive in the Algorithms arcade — game-first lessons you drive yourself. And when you're ready to prove it, the runnable challenges are waiting.