All challenges
Multiple ChoiceBeginner 30s

O(1) — Constant Time

An O(1) algorithm means:
Options
  1. 1Runtime grows linearly as the input grows
  2. 2Runtime stays constant regardless of input size
  3. 3Runtime doubles each time an element is added
  4. 4Runtime grows quadratically with the input

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle