Advertisements
Advertisements
Questions
Define the following term with reference to the Tree:
Depth
Define the following term with respect to the binary tree:
Depth of tree
Definition
Advertisements
Solution

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?
