View worked solution
Answer: 11 : 11
A full binary tree (or strict binary tree) is a binary tree in which every node has either or children.
To find the maximum possible height for a given number of nodes , we must construct a tree that is as skewed as possible. In such a tree, each level from level to level contains exactly nodes (one internal node and one leaf node, except the last level which contains two leaf nodes).
The minimum number of nodes required to achieve a height in a full binary tree is given by:
For a given number of nodes , the maximum height satisfies:
Substituting into the inequality:
Thus, the maximum possible height of a full binary tree with nodes is .
Free practice · Your answers on this page are not saved.
