Page 1 of 1

What is the complexity of adding an element to the heap.

Posted: Wed Jul 13, 2022 7:42 pm
by answerhappygod
a) O(log n)
b) O(h)
c) O(log n) & O(h)
d) O(n)