The GATE Grind

GATE 2009 CS – Question 59

Programming and Data Structures · Binary Heaps · 2 marks · Multiple choice

Consider a binary max-heap implemented as an array. Which array is a max-heap?

  1. 25, 12, 16, 13, 10, 8, 14
  2. 25, 14, 13, 16, 10, 8, 12
  3. 25, 14, 16, 13, 10, 8, 12
  4. 25, 14, 12, 13, 10, 8, 16

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) 25, 14, 16, 13, 10, 8, 12

Explanation

We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort

More Binary Heaps questions

All Binary Heaps questions →