Question 41
Consider a max-heap stored in an array using the usual level-order (breadth-first) representation:
40, 30, 20, 10, 15, 16, 17, 8, 4The value 35 is now inserted into this heap. After the insertion, the array representing the heap is:
Sign in to see the answer
Answers and explanations are free — they just need an account.