GATE CSE 2026 Session 1 Q33: Maximum height of a full binary tree with 23 nodes
- Programming and Data Structures
- 1 mark
- NAT
- No negative marking
Question
The 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)
Try it: numerical answer: type the value
Show answer and explanation
Answer: 11 (official GATE 2026 final answer key)
Concept used: A full binary tree with nodes has internal nodes; height is maximised by a chain of internal nodes.
First step: There are internal nodes; place them on a single root-to-leaf path.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2026 Session 1 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Programming and Data Structures PYQs
- 2026 Session 1 · Q23Non-leaf indices in a 1-indexed binary heap with n odd
- 2026 Session 1 · Q24Empty slots after linear-probing inserts with h(x) = (x+7) mod 11
- 2026 Session 1 · Q34Output of a C function with a shadowed block variable
- 2026 Session 1 · Q39Recursive length of a non-empty singly linked list
- 2026 Session 1 · Q40Third insertion that can never yield a complete BST of 1..15
- 2026 Session 1 · Q61Smallest n for which foo(n) = 5 with foo(bar(n))