Consider a binary min-heap containing 105 distinct elements. Let 𝑘 be the…

PYQ GATE 2024

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

Attempted by 412 students.

Sign up free to check your answer

Sign up free

Explore the full course: Data Structures

Loading lesson…