Question

In a min-heap, what is the complexity of removing the smallest element and restoring the heap property?

A O(1)
B O(log⁡n)
C O(n)
D O(nlog⁡n)
E O(n2)
Practice Next

Hey! Ask a query