THis Q is in data structures that is:
Write a recursive algorithm that will, given the root node of a tree, calculate the number of internal nodes of the tree?
the internal nodes is
root
/\
internal nodes internal nodes
/ \ / \
leaf leaf leaf internal nodes
/
leaf
I know how to calculate all the tree's node... but this time I want the number of internal nodes.... I hope there is answer for that...