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

  1. A.

    80, 70, 50, 30, 20, 10, 5

  2. B.

    5, 10, 20, 30, 50, 70, 80

  3. C.

    70, 20, 80, 10, 5, 30, 50

  4. D.

    80, 20, 70, 10, 5, 30, 50

Attempted by 293 students.

Show answer

Correct answer: D

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…