All challenges
Multiple ChoiceBeginner 30s

Queue: Complexity

Enqueue and dequeue operations on a queue have time complexity:
Options
  1. 1O(n²) each
  2. 2O(n) each
  3. 3O(1) each
  4. 4O(log n) each

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