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?

  1. A.

    {23, 17, 14, 6, 13, 10, 1, 12, 7, 5}

  2. B.

    {23, 17, 14, 6, 13, 10, 1, 5, 7, 12}

  3. C.

    {23, 17, 14, 7, 13, 10, 1, 5, 6, 12}

  4. D.

    {23, 17, 14, 7, 13, 10, 1, 12, 5, 7}

Attempted by 399 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

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

Loading lesson…