Question 96
A perfect binary tree has 63 nodes. How many leaves does it have?
A perfect tree with 63 nodes has 32 leaves.
A perfect binary tree has 63 nodes. How many leaves does it have?
A perfect tree with 63 nodes has 32 leaves.
A binary tree has 30 nodes. What is the maximum possible height measured in edges?
A completely skewed binary tree has n-1 edges on its longest root-to-leaf path.
A full binary tree has 31 leaves. How many internal nodes does it have?
For a full binary tree, $I=L-1$.
How many nodes are at depth 6 in a perfect binary tree?
At depth d, a perfect binary tree has $2^d$ nodes.
A BST is built by inserting keys 4, 2, 6, 1, 3, 5, 7. What is its height in edges?
The tree is perfect with levels 0,1,2, so its height is 2.