Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Problem solutions

170 of the 170 problems in the problem sets have a solution card so far. Each one names the wrong first idea, the one sentence that stays true while the right answer runs, and the solution in Python and Go. Try the problem first: twenty minutes before you open the card.

Arrays and hashing 9 of 9

Learn it from Arrays & Strings, Hashing.

Two pointers 6 of 6

Learn it from Interview Patterns (recognize the shape, apply the template), Clinic #17: Container With Most Water.

Sliding window 8 of 8

Learn it from Interview Patterns (recognize the shape, apply the template), Clinic #06: Longest Substring Without Repeating Characters.

Prefix sums 8 of 8

Learn it from The running total (prefix sums and difference arrays).

Stack and monotonic stack 8 of 8

Learn it from Linked Lists, Stacks & Queues, Clinic #08: Daily Temperatures, The stack that stays sorted (monotonic stack and deque).

Binary search on the answer 6 of 6

Learn it from Clinic #33: Koko Eating Bananas.

Linked lists and fast/slow pointers 11 of 11

Learn it from Clinic #34: Linked List Cycle, Clinic #01: Reverse a Linked List.

Trees 15 of 15

Learn it from Trees (BST, balancing, heaps, tries), Trees, Worked (rotations, B-trees, range trees).

Tries 4 of 4

Learn it from Clinic #23: Implement Trie, Clinic #24: Word Search II.

Heaps and top-k 8 of 8

Learn it from Clinic #19: Kth Largest Element in an Array, Clinic #20: Top K Frequent Elements, Two heaps and a merge (running median, k-way merge, top-k).

Backtracking 10 of 10

Learn it from Algorithm Design Patterns, Clinic #13: Subsets.

Graphs: BFS, DFS and topological sort 10 of 10

Learn it from Graphs (BFS, DFS, Dijkstra, topological sort), Clinic #15: Number of Islands, Clinic #16: Course Schedule.

Shortest paths 6 of 6

Learn it from Clinic #25: Network Delay Time, Shortest Paths, Worked (Dijkstra, Bellman-Ford, A*).

Union-find 5 of 5

Learn it from Clinic #26: Redundant Connection, Who is in my group? (union-find).

Intervals 7 of 7

Learn it from Clinic #28: Merge Intervals, Clinic #29: Non-overlapping Intervals.

Greedy 9 of 9

Learn it from Clinic #27: Jump Game, Algorithm Design Patterns.

1-D dynamic programming 12 of 12

Learn it from Recursion & Dynamic Programming, Dynamic Programming, Worked (filling the table).

2-D dynamic programming 10 of 10

Learn it from Dynamic Programming, Worked (filling the table), Clinic #22: Longest Common Subsequence.

Bits and math 11 of 11

Learn it from Bit Manipulation (thinking in bits), Clinic #32: Single Number.