Binary Heaps questions

Q23

GATE CS 2026 CS-1Tree Data StructuresMSQ1 mark
Let nn be an odd number greater than 100. Consider a binary minheap with nn elements stored in an array PP whose index starts from 1.

Which of the following indices of PP do/does NOT correspond to any leaf node of the minheap?
More than one option can be correct.
Show answer without attempting

Answer: B, C

0/10 correct0 marks

Related topics in Tree Data Structures