मराठी

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×