0
How to calculate that a binary tree contains no of leaves ?
5 Antworten
+ 1
You cannot.
+ 1
You can do it with structure. Check the link below..!
http://www.geeksforgeeks.org/write-a-c-program-to-get-count-of-leaf-nodes-in-a-binary-tree/ hope u get your answer
0
Do you mean to calculate the number of leaves or are you speaking of "of leaves" ? In that last case, what are they please ?
0
to calculate the leaves number
0
It depends if you do it recursively or iteratively, but you'll just either go to each node's son if he has at least one, or else add one