0
What is the time complexity of building a binary heap from n elements using the bottom-up (heapify) method?
- AΘ(log n)
- BΘ(n²)
- CΘ(n log n)
- DΘ(n)
Correct answer: D
What is the time complexity of building a binary heap from n elements using the bottom-up (heapify) method?