Vidyalelo
Data Structure · Q64

Heaps

Programming · Data Structure · question 64

Q64

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

A.
O(log n)
B.
O(h)
C.
O(log n) & O(h)
Answer
D.
O(n)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board