All challenges
Multiple ChoiceBeginner 30s

Arrays: Access Time

What is the time complexity of accessing an element by its index in an array?
Options
  1. 1O(log n)
  2. 2O(1)
  3. 3O(n²)
  4. 4O(n)

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