Build Max Heap from a Given Array - Approach

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

good explanation. It was hard for me to find a video on this and I found you.

pradiplamsal
Автор

After reaching the root node, you have to travel down along the node that replaced the root. i.e calling heapify again on 12 again after 91 replaces it

srilekhatalluri
Автор

Thank you so much for doing this video, I didn't find any other explaination.

jessica
Автор

I'll put you on my special thanks for having been promoted to the algorithms course

lorenzolobrutto
Автор

[9, 8, 10, 7, 6, 11, 12, 20, 30] what about this? i think your algorithm doesn't work on this example, because if we do so, we will get wrong tree...

mamaafrica