Growth Rates
O(1) vs O(log n) vs O(n) vs O(n²) — a step-tile race.
INSTRUCTION
MEMORY
CONSOLE
MEMORY — every variable is a labeled box
(empty — no variables created yet)
CONSOLE — what the program says back
>▍ nothing printed yet
O(1) vs O(log n) vs O(n) vs O(n²) — a step-tile race.
MEMORY — every variable is a labeled box
CONSOLE — what the program says back