Roadmap
35 modules in teaching order. Each one lists the modules worth finishing first. Lessons are published in reviewed batches:61 of 61 listed lessons are available now; everything marked planned is not written yet.
Turn a vague task into precise inputs, outputs and constraints, then argue that a solution is correct.
What a variable, a reference and a buffer really are, and why contiguous memory is fast.
After: M01 Algorithmic Thinking
Count operations, describe growth, and tell worst-case, average and amortized costs apart.
After: M01 Algorithmic Thinking
The collections every language ships, what each operation costs, and how to choose one.
After: M02 Memory Model, M03 Big O
Contiguous storage, index arithmetic, and how a dynamic array grows while keeping append cheap.
After: M04 Built-in Collections
Encodings, code units and code points, immutability, and building strings efficiently.
After: M05 Arrays
Nodes and pointers: what O(1) insertion really requires, and the classic pointer techniques.
After: M02 Memory Model, M03 Big O
Last in, first out: implementations, expression handling and the monotonic stack.
After: M05 Arrays, M07 Linked Lists
First in, first out, ring buffers, double-ended queues and the monotonic deque.
After: M08 Stacks
Hashing, collisions and load factor: why lookups are expected O(1) and when they are not.
After: M05 Arrays, M06 Strings
Base cases, the call stack, recursion trees and the first look at memoization.
After: M02 Memory Model, M03 Big O
Linear and binary search and their relatives, with the preconditions each one needs.
After: M05 Arrays, M11 Recursion
Stability, in-place sorting, the classic algorithms and what built-in sorts actually do.
After: M05 Arrays, M11 Recursion
Opposite and same-direction pointers, read/write compaction and partitioning.
After: M05 Arrays
Fixed and variable windows with frequency tracking, and when the pattern does not apply.
Precompute once, answer range questions in O(1); apply range updates in O(1).
After: M05 Arrays
Boundaries, lower and upper bounds, and searching over a monotonic predicate.
After: M12 Searching
Tree vocabulary, representations and every traversal, recursive and iterative.
After: M11 Recursion, M09 Queues and Deques
The BST invariant, its operations, and why balance decides their cost.
After: M18 Trees, M12 Searching
Rotations, AVL and red-black trees, B-trees, and the ordered collections built on them.
After: M19 Binary Search Trees
The array-backed heap, sift operations, O(n) heapify and heap sort.
After: M18 Trees, M13 Sorting
Prefix trees for dictionaries and autocomplete, and their memory trade-offs.
After: M18 Trees, M06 Strings
Graph vocabulary and representations, and how density changes the right choice.
Breadth-first and depth-first search on graphs and grids, and what each one finds.
After: M23 Graph Fundamentals, M09 Queues and Deques, M11 Recursion
Ordering dependencies with Kahn’s algorithm or DFS, and detecting cycles.
After: M24 BFS and DFS
Relaxation and the algorithms built on it, with the graph conditions each one needs.
Disjoint sets with union by rank and path compression, and their near-constant amortized cost.
After: M23 Graph Fundamentals
Cut and cycle properties, Prim and Kruskal (after Union Find).
After: M23 Graph Fundamentals, M21 Heaps and Priority Queues, M28 Union Find
Divide, solve, combine; recurrences, the Master theorem and where it applies.
After: M11 Recursion, M13 Sorting
When a locally best choice is globally best, how to prove it, and counterexamples when it is not.
Choose, explore, undo: searching decision trees with pruning.
After: M11 Recursion
States, transitions and base cases; memoization and tabulation through the classic problems.
After: M11 Recursion, M31 Backtracking
Binary representation, two’s complement, masks and the standard bit tricks.
After: M03 Big O
Overflow, modular arithmetic, primes, fast exponentiation and counting.
After: M03 Big O, M11 Recursion
Recognize patterns from constraints, combine structures, and reason clearly in interviews.
After: M32 Dynamic Programming, M26 Shortest Paths, M10 Hash Tables and Sets, M21 Heaps and Priority Queues