Core CS
Algorithms
How to reason about efficiency and the core algorithmic techniques — divide & conquer, greedy, dynamic programming, backtracking — plus the classic graph, string and number-theory algorithms.
5 modules 18 lessons ~1 h of reading
Start learning
0/18 completed
01
Analysis
2 lessons- 1Complexity Analysis & Big-OHow to measure an algorithm's efficiency independent of hardware — Big-O, Θ and Ω, common classes, amortized and space complexity.beginner4 min
- 2RecursionFunctions that call themselves — base cases, the call stack, recursion trees, memoization, and converting recursion to iteration.beginner3 min
02
Sorting & Searching
3 lessons- 3Comparison SortingBubble, selection, insertion, merge, quick and heap sort — how each works, their trade-offs, and why n log n is the limit.intermediate4 min
- 4Linear-Time SortingCounting sort, radix sort and bucket sort beat n log n by not comparing elements — when keys have structure you can exploit.intermediate3 min
- 5Searching & Binary SearchLinear search, binary search done right, lower/upper bounds, and binary search on the answer.beginner3 min
03
Techniques
5 lessons- 6Divide & Conquer and the Master TheoremSplit a problem into independent subproblems, solve them recursively, combine — and analyse it in one line with the master theorem.intermediate3 min
- 7Greedy AlgorithmsMake the locally best choice at every step — when that provably works, how to prove it, and when it fails.intermediate3 min
- 8Dynamic ProgrammingSolve each overlapping subproblem once. A step-by-step framework — state, transition, base case, order — with memoization and tabulation.intermediate4 min
- 9Classic DP ProblemsLongest increasing subsequence, coin change, LCS, edit distance and bitmask DP — the problems every DP question is built from.advanced2 min
- 10BacktrackingSystematically explore every candidate by choosing, recursing and un-choosing — with pruning to make it fast enough.intermediate2 min
04
Graph Algorithms
5 lessons- 11Graph Traversal (BFS & DFS)Breadth-first and depth-first search — the two ways to explore any graph, and the dozens of problems they solve.intermediate2 min
- 12Shortest PathsDijkstra, Bellman-Ford, Floyd-Warshall and A* — which to use for which graph, and how each works.advanced3 min
- 13Minimum Spanning TreesConnect every vertex at minimum total cost — Kruskal's and Prim's algorithms and the cut property behind them.intermediate2 min
- 14Topological Sort & Strongly Connected ComponentsOrder tasks that depend on each other, and find the groups of vertices that can all reach one another.advanced3 min
- 15Network Flow & MatchingMaximum flow, the max-flow min-cut theorem, Ford-Fulkerson / Edmonds-Karp, and bipartite matching.advanced2 min
05
Strings, Bits & Math
3 lessons- 16String AlgorithmsPattern matching in linear time with KMP, Rabin-Karp and the Z-algorithm, plus Manacher's palindromes and suffix structures.advanced3 min
- 17Bit ManipulationOperators, two's complement, essential tricks, bitmasks as sets, and the interview problems they solve in O(1) space.intermediate4 min
- 18Number Theory & Math for ProgrammersGCD, primes and the sieve, modular arithmetic, fast exponentiation, modular inverse, combinatorics and overflow.intermediate3 min