Consider the following array of elements. 〈89, 19, 50, 17, 12, 15, 2, 5, 7,…

PYQ GATE 2015

Consider the following array of elements.

〈89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9, 100〉

The minimum number of interchanges needed to convert it into a max-heap is

  1. A.

    4

  2. B.

    5

  3. C.

    2

  4. D.

    3

Attempted by 420 students.

Sign up free to check your answer

Sign up free

Explore the full course: Data Structures

Loading lesson…