Complexity Drill

About Complexity Drill

Read a snippet, name its time and space complexity, then check the reasoning behind the bound.

Each card shows real code: nested loops, recursion, and linear work hidden inside a loop body. Pick the time and space bounds, then read the reasoning. Snippets are in Python, JavaScript, and Java. Cards are scheduled with spaced repetition: missed cards return sooner, and known cards space out.

Bounds in the Answer Set · 10