हिंदी

Define the following term with reference to the Tree: Depth

Advertisements

प्रश्न

Define the following term with reference to the Tree:

Depth

Define the following term with respect to the binary tree:

Depth of tree

परिभाषा
Advertisements

उत्तर

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)
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?

APPEARS IN

Advertisements
Share
Notifications



      Forgot password?
Use app×