Module 0 · Drill 1 · 20 reps

Big-O classifier

Twenty snippets. For each, pick the tightest correct Big-O. Tightest means: O(1) is also O(n) mathematically, but the right answer is O(1). The goal is reps until your eye instantly snaps to the right shape.

Score: 0 / 0
When you're done

If you missed any, hit 📓 and write the rule that would have helped: "If I see nested loops over the same n, that's O(n²)." Build your own classifier from your mistakes.