See algorithmsthink.

    From sorting to transformers: 254 lessons in AI engineering, machine learning, algorithms, system design and databases. Each one is a live visualization you can pause, rewind and break. Then you prove you got it.

    Free, and no account needed to start.

    Comparisons
    0 compares
    Writes
    0 writes

    ready

    Open the full Quick Sort lesson: step through it, then take the quiz

    Pick an algorithm, shuffle, sort. This is a real lesson, running.

    Reading about it is not getting it.

    Most courses ask you to watch and remember. Learning research points the other way: you learn by doing, guessing and recalling. Every lesson here is built on four of those findings.

    • Do it, don't just watch it

      People understand a process better when they control it than when they watch a video of it.

      You set the input, step forward and back, and change things to see what breaks.

    • Guess first

      Predicting what happens next, then checking, makes an idea stick far better than being told.

      The algorithm labs pause before key steps and ask you what comes next.

    • Recall, don't reread

      Answering from memory beats rereading notes, even when it feels harder.

      Every lesson ends in practice: 4,849 quiz questions in all, plus build-it activities and code.

    • In the right order

      New ideas land when the ideas they build on are already in place.

      Paths put the lessons in order, and every lesson says what to learn first.

    Watch it.
    Predict it.
    Prove it.

    You understand something when you can say what happens next before it does. Every lesson is built around that moment. Try the question here.

    1. Watch

    Every lesson runs on a transport bar. Pause on any step, go back one, change the input and run it again.

    2. Predict

    Quick sort has just dropped its pivot into place. What is true of every element to its left?

    3. Prove

    Write it yourself in the in-browser editor. Hidden tests decide when you are done.

    • sorts an empty array
    • keeps duplicates
    • handles sorted input
    • handles negative numbers

    48 lessons, about 18 hours

    Algorithms

    Sorts, graphs, trees and dynamic programming, run one operation at a time with the code highlighted beside them.

    Browse Algorithms
    Sorting25 of 26 placedO(n log n)

    From zero, in the right order.

    Each path puts the lessons into phases, and every phase ends in a project you build and can show an interviewer.

    Then prove it under interview conditions.

    Write the code in Python, Java, JavaScript or TypeScript, then take a timed mock interview with hidden tests, follow-up questions and a score against the bar for the level you are aiming at.

    Run a whole cohort on it.

    Schools, employers and governments can run a program here. You pick a track. Learners study it, pass a timed assessment, form teams and build a project. Your judges score it and you publish the results, with an email to learners at every step.

    Free for every learner
    Every lesson, quiz and learning path costs nothing, and your program pays for their Pro while it runs.
    Nothing to install
    It runs in any modern browser, on a laptop or a phone. No plugins, no IT ticket.
    Built to be accessible
    Keyboard controls in the labs, reduced motion when a device asks for it, light and dark themes.
    No account to start
    Learners can open any lesson straight away and sign in only when they want to save progress.

    Your first lesson takes two minutes.

    Every visualization and every quiz is free. Start now, and make an account later if you want to keep your progress.