Simple AlgorithmAlgorithms & Data Structures
Algorithms & data structures · from intuition to research

Start with brute force.
Finish optimal.

A course in three levels of depth (Brute Force, Optimized, Optimal). Every algorithm is a simulation you can step through, break and fix, from your first loop to the research frontier, and your understanding is measured, not just your clicks.

190lessons
3depth levels
30simulations
80 hof material
The recursion tree

All of algorithms & data structures, in one picture.

The course is a single recursion tree with three levels, like a problem split into subproblems. The inner ring is Brute Force: ten big ideas. Each splits into Optimized lessons, and each of those into Optimal deep dives at the research frontier. As you learn, your tree lights up. Click a segment to zoom in.

Pass I
Brute Force · 10 topics · 2.9 h
Every big idea in algorithms and data structures, built on intuition and simulations you can step through.
Pass II
Optimized · 45 subtopics · 17 h
The real machinery: data structures, algorithms and proofs, derived, analyzed and implemented.
Pass III
Optimal · 135 deep dives · 60 h
Lower bounds, landmark papers and the open problems at the research frontier.

Step through every algorithm

Live simulations: two pointers closing in, sliding windows, binary search halving, heaps sifting, Dijkstra relaxing edges, DP tables filling cell by cell and backtracking trees being pruned. You don’t read about an algorithm; you run it.

Predict, then observe

Commit to a prediction before every reveal. The surprise is where intuition gets rewired.

Understanding, measured

Bayesian knowledge tracing plus your stated confidence. Confident mistakes are flagged as misconceptions.

Stay cached

What you learn gets evicted like an unused cache line. Spaced reviews refresh it right before it fades.

Syllabus

Every lesson in the algorithms & data structures course

190 lessons in 10 topics. Read any of them here; a free account adds the live simulations and keeps track of what you understand.

1What Is an Algorithm?

Precise recipes, judged by whether they are right and how they scale.

  1. Big-O Notation & Running Time
  2. Correctness: Invariants & Proofs
  3. Recursion & Recurrences
  4. Amortized Analysis

2Arrays, Linked Lists, Stacks & Queues

The building blocks every other data structure is made of.

  1. Arrays & Dynamic Arrays
  2. Linked Lists
  3. Stacks, Queues & Deques
  4. Monotonic Stacks & Queues

3Two Pointers, Sliding Windows & Prefix Sums

The array techniques behind a huge share of interview and contest problems.

  1. The Two-Pointer Technique
  2. The Sliding Window Technique
  3. Prefix Sums & Suffix Sums
  4. Bit Manipulation

4Sorting Algorithms & Binary Search

Put things in order, then find anything in a few steps.

  1. Merge Sort, Quicksort & Heapsort
  2. Counting Sort, Radix Sort & Bucket Sort
  3. Binary Search
  4. Selection & Order Statistics

5Hashing & String Algorithms

Constant-time lookup, and fingerprints that find patterns in text.

  1. Hash Tables
  2. Universal Hashing & Sketches
  3. String Matching: Rabin–Karp, KMP & the Z-Function
  4. Tries
  5. Suffix Arrays & Suffix Trees

6Trees, Heaps & Search Trees

Hierarchies that keep data ordered, prioritized and quick to query.

  1. Binary Trees & Traversals
  2. Binary Search Trees
  3. Balanced Trees: AVL, Red-Black & B-Trees
  4. Heaps & Priority Queues
  5. Segment Trees & Fenwick Trees

7Graph Algorithms

Networks of things, and the algorithms that explore, route and connect them.

  1. Graphs, BFS & DFS
  2. DAGs, Topological Sort & Strong Connectivity
  3. Shortest Paths: Dijkstra, Bellman–Ford, Floyd–Warshall
  4. Minimum Spanning Trees & Union-Find
  5. Network Flow & Matching

9Dynamic Programming

Solve each subproblem once, then build the answer from small to large.

  1. From Recursion to Dynamic Programming
  2. Sequence DP: LIS, LCS & Edit Distance
  3. Knapsack, Subset Sum & Coin Change
  4. DP on Intervals, Trees & Subsets
  5. Counting, Probability & Games
  6. Speeding Up Dynamic Programming

10Problem Solving & Hard Problems

Choosing the right technique, and recognizing problems no fast algorithm is known to solve.

  1. Recognizing the Right Technique
  2. P, NP & NP-Completeness
  3. Approximation Algorithms
  4. Coping with NP-Hardness

Your solution is brute force. Let’s optimize it.

Free account, one login for every course. Progress syncs to your profile, so pick up on any device.

Create your account