GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set1

GATE 2024 set1 · CS · MCQ · 2 marks · Programming and Data Structures › Heaps

GATE 2024 set1 Computer Science and Information Technology question: Consider a binary min-heap containing 105 distinct elements. Let k be the index (in the…

Consider a binary min-heap containing 105 distinct elements. Let be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of is

  1. (A)

    53

  2. (B)

    52

  3. (C)

    27

  4. (D)

    1

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion