Skip to main content

Big O Battle

Match code snippets and scenarios to their complexity classes across five escalating rounds, with full explanations on every miss.

Big O notationgrowth ratesbest/average/worst casecode analysisRead the lesson
How to play
  1. Each round shows 4 questions: pick the complexity class for each snippet or scenario.
  2. Wrong answers reveal a detailed explanation, read it, it's the whole point.
  3. Score 100 per correct answer; streaks of 3+ earn bonus points.
  4. Rounds get harder: from O(1) vs O(n) up to amortized and best/average/worst distinctions.

Big O Battle

5 rounds × 4 questions, escalating from O(1) basics to amortized analysis. 100 points per correct answer, +25 streak bonus from 3 in a row. Every answer, right or wrong, comes with the reasoning.

Estimated play time: 5–7 min. Scores feed your local progress, stored only in this browser.