Course · Interview preparation

Data structures and algorithms, by pattern

Fourteen patterns that between them solve most interview problems. Every problem here is written from scratch, and every solution is code that ran against its tests before it reached the page.

43 lessons · 247 problems · 18 hours

Start with How this course works

Start here

Arrays and prefix thinking

2 days

Binary search and the predicate framework

4 days

Two pointers and sliding windows

3 days

Sorting, comparators and intervals

4 days

Hashing and search structures

3 days

Lists, stacks, queues and design

4 days

Recursion and backtracking

5 days

Heaps

2 days

Trees and BSTs

5 days

Tries and strings

4 days

Dynamic programming

8 days

Greedy

1 day

Graphs

6 days