4 ms·
You'd re-heapify all heaps greater than the one that ejected an element, since heaps greater than you are all full except for the very last one.
by AYBABTME 11y ago
You'd re-heapify all heaps greater than the one that ejected an element, since heaps greater than you are all full except for the very last one.
- deciplex 11y agoI said that: > Then you would insert the max you just removed into the next heap in the same way, and so on.