- GATE CS
- 2026–27 pattern practice
- Data Structures
- Heaps
- Easy
What is the minimum number of elements in a binary heap of height h (a single node has height 0)?
Trees
Pick an option to check your answer.
Answer: C. Solution
A heap is a complete binary tree. Levels to are full ( nodes), and the last level needs at least one node: .
Why not the others
- is the maximum (all levels full).
- describes a chain, which is not complete.
- has height .