✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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: