Learnalgorithmsby playingthe machine

How the apps you use every day really work, explained with pictures you move yourself, one step at a time. For beginners and programmers alike, free, no account.

FOUNDATION · DSABACKENDFRONTEND
48DSA topics
27backend and frontend case studies
75ready to learn · Free, no account, two languages
START HERE

Never programmed? That's fine.

Every app you use, from ride-hailing to mobile banking, runs on the same few ideas. This site explains those ideas with pictures you can move, step by step, in everyday words. You don't need to be able to read code.

How to read the pictures

  1. Read the "Watch" line above the picture. It's the one thing to look at.
  2. Press Play to watch it all move, or Step to go one step at a time. The sentence under the picture explains each step.
  3. Colours are always explained under the picture. Usually red means what's happening now, green means finished or correct.
  4. Found an unfamiliar word? Open the glossary. Sections labelled "Code, for programmers" can be skipped.

Learning tracks

Why fundamentals, in the age of AI

01 / COST

Know why code is slow

AI writes code that is correct for small examples. Big-O tells you what happens when the data is a million rows.

02 / CHOICE

Pick the data structure

Hash map, queue or heap: the question is which operations you do most, and which structure makes them cheap.

03 / REVIEW

Find the hidden bug

N+1, off-by-one and O(n²) in disguise. The skill you use every time you review AI-written code.

04 / PRACTICE

Review AI code

Code that looks right and passes small tests. Find the faulty line and see what it costs as the data grows.

Open practice