Advertisements
Advertisements
Question
Define the following terms with reference to Tree : Depth
Solution
Depth : Depth of a tree is defined as maximum level of any nodes in the tree. If root is level 0 then depth or height of tree is equal to 1 + largest level number.
For eg: Depth of above tree is 5.
shaalaa.com
Basic Data Structures (Stack, Queue, Dequeue)
Is there an error in this question or solution?