Question: What is the time complexity of deleting the maximum element from a max-heap?
Options:
Correct Answer: O(log n)
Solution:
Deleting the maximum element from a max-heap involves removing the root and then re-heapifying, which takes O(log n) time.