The minimum number of interchanges needed to convert the array 89, 19, 40, 17,…

PYQ GATE 1996

The minimum number of interchanges needed to convert the array 89, 19, 40, 17, 12, 10, 2, 5, 7, 11, 6, 9, 70 into a heap with the maximum element at the root is:

  1. A.

    0

  2. B.

    1

  3. C.

    2

  4. D.

    3

Attempted by 306 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…