Pen first

You cannot read your way to writing an algorithm.

Reading builds recognition, and recognition feels exactly like understanding right up until you face a blank editor. That gap is why people who happily explain binary search still cannot write it.

So these lessons hide the code. Do not take our word for it, the box on the right has no explanation in it at all. Just start tapping.

Try it, no signup

Looks used: 0 / 10 allowed

Find 23. Tap the middle card.

The cards are sorted. Ten cards, and you are only allowed a handful of looks. Where is the only sensible place to start?

How every lesson runs

Desk 1

Paper

Run it with your finger. No code exists yet.

Desk 2

Rule

Your own trace is the evidence. Name why it works.

Desk 3

Logic

Write the method in plain English. Still no syntax.

Desk 4

Code

Real Python, checked against your own hand trace.

16 algorithms you already "know".

Grouped by the move, not the data structure, because an interview never says "this is a heap question".