An array of integers of size n can be converted into a heap by adjusting the heaps rooted at each internal node of the complete binary tree starting at the node \(\left \lfloor (n - 1) /2 \right \rfloor\), and doing this adjustment up to the root node (root node is at index 0) in the order \(\left \lfloor (n - 1) /2 \right \rfloor\),\(\left \lfloor (n - 3) /2 \right \rfloor\), ....., 0. The time required to construct a heap in this manner is
- A\(O(\log n)\)
- BO(n)
- C\(O (n \log \log n)\)
- D\(O(n \log n)\)