Y
Hacker News
new
|
ask
|
show
|
jobs
by
AYBABTME
3852 days 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.
1 comments
deciplex
3852 days ago
I said that:
>
Then you would insert the max you just removed into the next heap
in the same way,
and so on.
link
> Then you would insert the max you just removed into the next heap in the same way, and so on.