Question: I wanted to know how to insert some numbers into a min heap (we are using an array for our min heap), and then I'd
I wanted to know how to insert some numbers into a min heap (we are using an array for our min heap), and then I'd like you to do the same for the max heap as well (also an array). If you could explain each step of the insertion process it would be critical to understanding. The numbers are 9; 6; 7; 5; 8; 1; 2. You would be inserting them in this order as well. Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
