Which of the following sequences of array elements forms a heap?
GATE · 2006 · IT
Which of the following sequences of array elements forms a 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 399 students.
Show answer
Correct answer: C
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…