Q. |
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. O(log n) & O(h) |
Login to Continue
It will take less than 2 minutes