I have a specific question about min-max heap related problem in Java.
If you have inputs in this order:
71, 8, 41, 100, 60
Would the tree look like the following?
8
100 41
70 60
What about after deleteMin
and deleteMax
?
I am trying to understand what would happen if the max node is somehow smaller than some of the min nodes... If you can help me by explaining it with a tree that would be great :)