Question: In a max-heap, what is the relationship between the height of the heap and the number of elements?
Options:
Correct Answer: Height is log(n)
Solution:
The height of a max-heap is log(n) because it is a complete binary tree, where n is the number of elements.