View on GitHub

Big O, by experiment

Software engineering planned

Fast on 100 rows. Dead on a million. Here’s why.

The idea

Big O notation describes how running time grows with input size. It’s easier to feel than to read: time a loop inside a loop at 1,000, 10,000 and 100,000 items and watch the gap explode.

The fix is often a different data structure, like a set lookup instead of a list scan, and the difference is measurable in a few lines.

What the lesson will build

Key ideas

The video

When it’s published, the code will live in software-engineering/ and this page will link to it.


All topics · Suggest a topic