Find out the number of interchanges needed to convert the given array into a…

PYQ Infosys Hiring Test 2024

Find out the number of interchanges needed to convert the given array into a max-heap. 89,19,50,17,12,15,2,5,7,11,6,9,100

  1. A.

    1

  2. B.

    2

  3. C.

    3

  4. D.

    0

Attempted by 334 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…