GATE CS 2024 · Set-1 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0090

Consider a binary min-heap containing 105 distinct elements. Let \(k\) be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of \(k\) is
  1. A
    53
  2. B
    52
  3. C
    27
  4. D
    1

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422809/gate-cse-2024-set-1-question-33

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