Question: There are numbers between 1 and 35 in an array and we want to build either max heap or min heap from the numbers. Which
There are numbers between 1 and 35 in an array and we want to build either max heap or min heap from the numbers. Which of the following sequences could not be used to generate a new array for heap? Explain briefly (in a sentence) your reasoning.
A. {9,8,6,5,2,1,7,4}
B. {12,13,16,24,22,19,35,27,30}
C. {17,15,13,6,10,7}
D. {2,3,4,7,20,15,35,6,10}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
