What is the complexity of adding an element to the heap
A. O(log n)
B. O(h)
C. O(log n) & O(h)
D. O(n)
Answer:C
What is the complexity of adding an element to the heap
A. O(log n) B. O(h) C. O(log n) & O(h) D. O(n)