Mini games

Big-O Sprint

Fourteen snippets across five languages. Name the complexity, and watch for the sort hidden in a helper.

Complexity14 rounds
Correct
0
Answered
0 / 14
Language
·

How it works

Fourteen snippets, one complexity each. Python, JavaScript, Dart, Rust and SQL. Some ask about time, some about space. The traps are the ordinary ones: a membership test inside a loop, a sort hidden in a helper, a function wrapped around an indexed column.

Every snippet is real code for the language named above it, syntax-checked before it went in.

Leaderboard

More games

All games

What should we call you?

Your name goes on the leaderboard of every game here. It stays in this browser.