Consider a binary max-heap implemented using an array. Which one of the…
GATE · Computer Science · 2006
Consider a binary max-heap implemented using an array. Which one of the following arrays represents a binary max-heap?
- A.
23, 17, 14, 6, 13, 10, 1, 12, 7, 5
- B.
23, 17, 14, 6, 13, 10, 1, 5, 7, 12
- C.
23, 17, 14, 7, 13, 10, 1, 5, 6, 12
- D.
23, 17, 14, 7, 13, 10, 1, 12, 5, 7
Attempted by 343 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…