Skip to content

Algorithm Mastery

Interview-style algorithms organized by priority, with specialized tracks.

Math Foundations — Many topics here build on discrete math, probability, and linear algebra. See the Math track for prerequisite material.

See Study Plan for the 21-day algorithm study plan.

BookAccessUse For
Introduction to Algorithms (CLRS), 4th ed. — Cormen, Leiserson, Rivest, SteinOwned (MIT Press)Comprehensive reference for all algorithm topics; formal proofs, correctness arguments
Competitive Programmer’s Handbook — Antti LaaksonenFree PDFConcise implementations, contest techniques, advanced topics (segment trees, FFT)
Codeless Data Structures and AlgorithmsOwnedConceptual understanding, visual intuition
Algorithm Design Manual — SkienaRecommendedWar stories, practical algorithm selection

CLRS chapter references are noted in each topic README where applicable. For competition-focused study, see the Competitive Programming track.

#TopicProblemsLangREADME
01Arrays & HashingTwo Sum, Contains Duplicate, Product of Array Except Self, Missing NumberJSPatterns
02Two Pointers & Sliding Window3Sum, Container With Most WaterJSPatterns
03Binary SearchFind Min in Rotated Array, Search in Rotated Array, LISSJSPatterns
04Linked ListsAdd Two NumbersJSPatterns
05TreesAVL Tree + Range QueryPythonPatterns
06GraphsClone Graph, Course Schedule, Number of Islands, Pacific Atlantic Water Flow, Corgi ConundrumJS/TS/CPatterns
07Dynamic ProgrammingClimbing Stairs, House Robber, House Robber II, Coin Change, Unique Paths, Decode Ways, Word Break, Max Subarray, Max Product Subarray, LCS, Knapsack, Edit Distance, Kadane, DP on Graph, Optimal BST, Probabilistic Transitions, AlignmentJS/Python/CPatterns
08GreedyBest Time to Buy/Sell Stock, Jump Game, Example 1, Example 2, Example 3, Huffman CodingJS/Python/JavaPatterns
09BacktrackingCombination Sum, Map ColoringJS/PythonPatterns
10Math & Bit ManipulationCount Bits, Number of 1 Bits, Reverse Bits, Sum of Two IntegersJSPatterns
11Recursion & Divide-and-ConquerTree Path, Max Subarray D&CPythonPatterns
15Probabilistic StructuresBloom FilterPythonPatterns
16Systems Data StructuresCourse modules ds.01 to ds.09: Swiss and Robin Hood hash maps, heaps and top-k, LRU, radix tree, Bloom filter, bounded-load consistent hashingC/Rust/GoPatterns

Topics 12 to 14 were historical coursework (a C miner, Scheme exercises, ML and NLP labs) and moved to archive/algorithms/; the numbers stay reserved so links and the study plan keep their order. Topics 01 to 11 and 15 are the interview-pattern chapters (off the course spine, used by the interview drills); topic 16 hosts course modules.

Company-specific interview guides covering focus areas, question styles, and preparation strategies.

See interviews/README.md for the full breakdown.

Standalone implementations for hands-on practice.

See practice/ for exercises. The K-Means clustering and TF-IDF vector search scripts are archived in archive/algorithms/14-ml-statistics/, where the course cites them as worked examples for ag.07.