Question: What is the worst-case time complexity for building a heap from an array of n elements?
Options:
Correct Answer: O(n)
Solution:
The worst-case time complexity for building a heap from an array of n elements is O(n) using the heapify process.