Multiple ChoiceIntermediate 30s
Heap: Insert Complexity
Inserting an element into a heap has time complexity:
Options
- 1O(n²)
- 2O(1)
- 3O(n)
- 4O(log n) — bubble up
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.