Let n be an odd number greater than 100. Consider a binary min-heap with n…

PYQ GATE 2026

Let n be an odd number greater than 100. Consider a binary min-heap with n elements stored in an array P indexed from 1. Which of the following indices of P do/does NOT correspond to any leaf node of the min-heap?

  1. A.

    (n + 1) / 2

  2. B.

    (n - 1) / 2

  3. C.

    (n - 3) / 2

  4. D.

    n

Attempted by 114 students.

Sign up free to check your answer

Sign up free

Explore the full course: Data Structures

Loading lesson…