We have a binary heap on n elements and wish to insert n more elements (not necessarily one after another) into this heap. The total time required for this is
Reveal answer
Fill a bubble to check yourself
We have a binary heap on n elements and wish to insert n more elements (not necessarily one after another) into this heap. The total time required for this is