Consider a binary max-heap implemented using an array. Which one of the…

GATE · 2009 · CS

Consider a binary max-heap implemented using an array. Which one of the following array represents a binary max-heap?

  1. A.

    25,12,16,13,10,8,14

  2. B.

    25,14,13,16,10,8,12

  3. C.

    25,14,16,13,10,8,12

  4. D.

    25,14,12,13,10,8,16

Attempted by 591 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

Video solution available to enrolled students.

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

Loading lesson…