GATE IT 2006 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0206

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}

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3587/gate2006-it-44

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com