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?
- A.
(n + 1) / 2
- B.
(n - 1) / 2
- C.
(n - 3) / 2
- D.
n
Attempted by 114 students.
Sign up free to check your answer
Sign up freeLoading lesson…

