English

Define the following terms with reference to Tree : Depth - Computer Science 1

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?
2016-2017 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×