CHOOSE A WORLD

Nine worlds of coding problems, each explained in two minutes. Clear any five stages to beat a world, or all of them for 100%.

WORLDS CLEARED0/9
START HERE: Warm-up tutorial ▶

WORLD 1 Warm-up

Lookups, stacks, halving and two runners: the moves everything else is built on.

☆☆☆☆☆
SEE ALL 22 STAGES ▶

WORLD 2 Arrays

One-pass scans, sort and sweep, a leaderboard, a sliding window, running totals, two pointers and a stack.

☆☆☆☆☆
SEE ALL 26 STAGES ▶

WORLD 3 Trees

Solve a smaller copy: ask each subtree, read level by level, pass down limits, walk a tree of letters.

☆☆☆☆☆
SEE ALL 20 STAGES ▶

WORLD 4 Backtracking

Try a choice, explore everything after it, then undo it and try the next: every subset, every order, every sum.

☆☆☆☆☆
SEE ALL 20 STAGES ▶

WORLD 5 Dynamic programming

Remember the answers to smaller problems and build up: a staircase, a row of houses, a pile of coins, a rising run, two words.

☆☆☆☆☆
SEE ALL 22 STAGES ▶

WORLD 6 Graphs

Grids, dependencies and travel times: search outward, put steps in order, find the fastest route.

☆☆☆☆☆
SEE ALL 21 STAGES ▶

WORLD 7 Greedy

Take the best move right now and never look back, when you can prove that's safe: jumps, a road trip, a packed stage.

☆☆☆☆☆
SEE ALL 21 STAGES ▶

WORLD 8 Bits and math

Treat a number as a row of switches: cancel pairs with XOR, clear bits one at a time.

☆☆☆☆☆
SEE ALL 20 STAGES ▶

WORLD 9 Design

Build your own data structure, with every operation in constant time: a stack that knows its minimum, a cache.

☆☆☆☆☆
SEE ALL 20 STAGES ▶