Heap Sort
1. What is the worst-case complexity of the rebuild operation in a heap of n elements?
2. Does the rebuild operation vary for max and min heaps?