Sorting and pathfinding, one step at a time

Understand algorithms. Don't memorise them.

Eleven classic algorithms you can watch, pause and step through line by line, each explained in plain language with the places you meet it in real life.

Insertion sort0 comparisons · 0 writes
Like sorting a hand of cards: each new value slides left past bigger ones until it fits.

01

Watch it run

Play, pause, scrub and change the speed. Every step is recorded, so you can go backwards too.

02

Follow the code

The pseudocode highlights the line that just ran, with the live values of every variable.

03

Check yourself

Each algorithm ends with a question that tests whether you understood it, not whether you remember it.

Seven ways to put values in order. Compare two on the same input and see how many comparisons, swaps and writes each one needs.

Four ways to search a grid. Draw walls and costly terrain, generate a maze, and watch how each search spreads.