GATE CS 2026 Set 1 | Question 33
Programming & Data Structures › Trees · NAT · 1 mark · Answer: 11
- Question 33Programming & Data Structuresnat1 markThe height of a binary tree is the number of edges in the longest path from the root to a leaf in the tree. The maximum possible height of a full binary tree with 23 nodes is _________. (answer in integer)
Answer: 11
Solution
Answer: 11 In a full binary tree (every node has 0 or 2 children), , so internal nodes. The height is greatest when the tree is a "caterpillar": each internal node has one leaf child and one internal child. Each internal node then adds one level, so the height is 11.
More GATE PYQ on Trees
All GATE CS Programming & Data Structures PYQ →Attempt GATE CS 2026 Set 1 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →