Similar Posts

Subscribe
Notify of
3 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
bormolino
1 year ago

After inserting the numbers, the Max Heap / Binary Heap should look as follows

bormolino
1 year ago
Reply to  DavidGoggins

This would open a node on the left side on a new level, while on the right side a level is less. The tree would no longer be in balance.