All challenges
Multiple ChoiceIntermediate 30s

Heapify operation

Building a heap from an array takes:
Options
  1. 1O(n log n) always
  2. 2O(n) using bottom-up
  3. 3O(1)
  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