Q. What is the complexity of adding an element to the heap. (Solved)

1. O(log n)

2. O(h)

3. O(log n) & O(h)

4. O(n)

  • c. O(log n) & O(h)
Subscribe Now

Get All Updates & News