Computer Science, asked by srikanth4ubtech, 18 days ago

the diameter of a Binary tree is the count of nodes​

Answers

Answered by kingysucks
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 IIGoLDGrAcEII
0

Answer:

\huge{ \color{black}{ \colorbox{lavender}{YouR 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