Arrays & Sequences — the substrate of everything
Contiguous memory, indexing arithmetic, two-pointer and sliding-window patterns. The foundation on which every later module is built.
AlgoMastery is a free, rigorously structured path through the ideas that power modern software — arrays to graphs, recursion to dynamic programming. Every module is taught the way it should be: with worked examples, honest complexity analysis, and the reasoning behind every line of code.
Each topic opens with a precise, example-first explanation — mental model first, code second.
Every implementation is annotated line-by-line. You will not meet an unexplained variable in this curriculum.
Complexity is reasoned about, not asserted. "Why O(n log n) and not O(n²)" — stated explicitly, for every algorithm.
Curated problem sets with difficulty badges, pattern tags, and solution walkthroughs that explain the choice of approach.
Contiguous memory, indexing arithmetic, two-pointer and sliding-window patterns. The foundation on which every later module is built.
The geometry of optimal substructure — memoisation, tabulation, state design. The hardest and most rewarding module.
Enter module →Module 02A linked list is the refusal to hold memory in one piece. Each node is a signpost: a small payload and an arrow pointing to the next signpost. The pri…
Module 03Strings are arrays with a finite alphabet — usually ASCII, sometimes Unicode, occasionally just {A, C, G, T}. That constraint is a gift. A small alpha…
Module 04A hash map is a machine that converts the question 'have I seen this key before?' from a linear search into a constant-time lookup. That single capabi…
Module 05Trees are the first data structure where recursion stops being a cute control-flow trick and becomes the only natural language. A binary tree is eithe…
Module 07Almost every problem involving connections — cities by roads, people by friendships, pages by links, tasks by dependencies — is a graph problem in dis…
Module 08Sorting is rarely the goal. Sorting is the <em>preparation</em> that makes the real goal cheap: finding duplicates, computing medians, applying two-po…
Module 09The two-pointer technique and its cousin, the sliding window, are the single most transferable patterns in this curriculum. They appear in array probl…
Six weeks. Focused on the 40 patterns that appear in 90% of technical screens. Targeted problem lists per module; complexity analysis drilled into muscle memory.
Best for: engineers with a loop two months away.
Twelve weeks. Each module read end-to-end with its concept deep-dives. Prerequisite chains respected — arrays before strings before two pointers. Builds a real mental model.
Best for: self-taught engineers filling in gaps.
Dip in as needed. Use the topic index as a lookup, read the module you're stuck on, close the tab. No progress tracking, no guilt.
Best for: working engineers who already have the basics.
A long-form note when a new module is published — interview patterns, subtle bugs, the architecture of a problem. No tracking, no unsubscribe pop-ups, no churn.