Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Friday, January 24, 2020

The height of a binary tree is defined as the maximum number

The height of a binary tree is defined as the maximum number of edges in any path from the root to the leaf. The maximum number of nodes in any binary tree of height h is
A2h
B2h-1-1
C2h+1
D2h+1-1

Answer: \(2^{h+1}-1\)

Explanation:

The number  of nodes in a binary tree of height h is at least h + 1, 
and at most \(2^{h+1}-1\) here h is the depth of the tree.

reference: http://en.wikipedia.org/wiki/Binary_tree#Properties_of_binary_trees

Akilesh Kharvi
answered Dec 8 '2016 at 21:59

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories