Question DSA-HEAP-0049
MediumWhy does bottom-up heapify run in O(n) rather than O(n log n)?
- A.
Most nodes are near the bottom and sift down only a short distance
- B.
It skips half the elements
- C.
Sign up free to see the answer and a step-by-step explanation.