@sripo root node is also an internal node unless it is the only node in the tree
Formula for Leaf Nodes= I(N-1)+1
I---internal nodes
N---n array tree i.e 3
Hence, Leaf Nodes= 3(3-1)+1
= 3×2+1 = 7 nodes
1. Internal node means non leaf node.
we have for n ary tree
no of leaf node=X(n-1) +1 [By hand shake degree theorem]
where X =no of internal node
So for your question n=3 =>no of leaf node=2*X + 1
it will be [X(2-1) +1 =X+1] for binary tree n=2.
64.3k questions
77.9k answers
244k comments
80.0k users