the diameter of a Binary tree is the count of nodes
Answers
Answered by
1
Answer:
Program to count leaf nodes in a binary tree. A node is a leaf node if both left and right child nodes of it are NULL. Here is an algorithm to get the leaf node count. Leaf count for the above tree is 3.
__Please mark as brainliest__
Explanation:
Answered by
0
Answer:
The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two end nodes. The diagram below shows two trees each with diameter nine, the leaves that form the ends of the longest path are shaded (note that there is more than one path in each tree of length nine, but no path longer than nine nodes).
IIGoLDGracEII
Thank you
Similar questions