After inserting the following elements, in the given order, into an initially…
BEL · Computer Science · Probationary Engineer · 2023
After inserting the following elements, in the given order, into an initially empty max heap, which array representation is obtained?
Elements: 20, 30, 70, 10, 5, 50, 80
- A.
80, 70, 50, 30, 20, 10, 5
- B.
5, 10, 20, 30, 50, 70, 80
- C.
70, 20, 80, 10, 5, 30, 50
- D.
80, 20, 70, 10, 5, 30, 50
Attempted by 293 students.
Show answer
Correct answer: D
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…