← Learn
Learn · Computer science

Algorithms

Seven lessons on the classic algorithms: how to measure speed with Big O, binary search, simple and fast sorts, recursion, searching a graph and dynamic programming.

More info

How it works

Each lesson is a short read with examples, then a few practice questions. Some ask what a piece of code prints, some have you pick an answer, and some have you tap steps or lines into the right order. You can try again as often as you like; after two misses there’s a button to show the answer.

What do I need to know first?

Programming basics, and ideally the data structures course, since stacks, queues and graphs come up here.

The other computer science courses

Where is my progress saved? In this browser, like the rest of the site. Nothing to sign up for.

“Python” is a registered trademark of the Python Software Foundation. This course isn’t made by or affiliated with it.