Question DSA-HEAP-0034
EasyIn a binary min-heap of n elements, how long does it take to find the minimum compared with finding an arbitrary given value?
- A.
O(1) for the minimum, O(n) for an arbitrary value
- B.
O(n) for both
- C.
Sign up free to see the answer and a step-by-step explanation.