Hi Im little confused with the difference between the depth and the diameter of a tree.Sorry if Its already asked but I couldn\'t find it.
From crackinterviewtoday,
Diameter of a Tree is defined as the number of nodes on the longest path between two leaves in the tree.
But depth is the number of edges from the root node to the node.