Question Bank

Big-O Complexity Quiz

Difficulty: Easy

Four short prompts on identifying time complexity from JavaScript code: nested loops, halving, recursion, and a bug-by-complexity hunt.