Pattern library / 20 guides

Learn the shape of the solution.

Each guide gives you the signal, invariant, template, and a deliberate problem progression. Every section is open. Your progress stays on this device.

All patterns140 lessons · 297 worked problems

All access / Free
A/H01
Foundation

Arrays & Hashing

Fast lookup, counting, grouping, and prefix techniques.

6 lessons · 14 problems
2P02
Foundation

Two Pointer

Coordinate indices to replace unnecessary nested loops.

6 lessons · 8 problems
SW03
Foundation

Sliding Window

Maintain a valid moving range over sequences.

9 lessons · 20 problems
BS04
Foundation

Binary Search

Search sorted data and monotonic answer spaces.

5 lessons · 14 problems
LL05
Foundation

Linked List

Pointer rewiring, cycles, reversal, and list structure.

9 lessons · 12 problems
TR06
Core

Tree

Recursive structure, traversals, and subtree reasoning.

9 lessons · 21 problems
TX07
Core

Trie

Prefix-aware search and compact string structure.

6 lessons · 6 problems
HP08
Core

Heap

Keep fast access to the next best candidate.

6 lessons · 9 problems
BT09
Core

Backtracking

Enumerate choices with a disciplined state template.

9 lessons · 11 problems
GR10
Core

Graph

Model relationships, traversal, ordering, and shortest paths.

13 lessons · 36 problems
DP11
Advanced

Dynamic Programming

Define states, transitions, and overlapping work.

18 lessons · 78 problems
GD12
Core

Greedy

Prove when the best local move preserves the global answer.

6 lessons · 7 problems
IN13
Core

Interval

Sort, merge, sweep, and reason about ranges.

9 lessons · 15 problems
MS14
Advanced

Monotonic Stack

Find the next or previous boundary in linear time.

6 lessons · 11 problems
PL15
Core

Palindrome

Exploit symmetry with pointers, centers, and states.

5 lessons · 8 problems
D/C16
Advanced

Divide and Conquer

Split, solve, and recombine independent structure.

5 lessons · 4 problems
PS17
Foundation

Prefix Sum

Turn repeated range work into quick arithmetic.

3 lessons · 7 problems
SL18
Advanced

Sorted List

Maintain order while inserting, removing, and querying.

2 lessons · 3 problems
ST19
Advanced

Segment Tree

Answer changing range queries with a recursive index.

3 lessons · 3 problems
()20
Core

Parenthesis

Track balance, validity, and nested expression state.

5 lessons · 10 problems