Computer Science, asked by devendra123world, 4 months ago

suppose a binary tree T is in memory .write a recursive procedure which finds the depth DEP of T?​

Answers

Answered by masterrrrrrr
1

Answer:

Algorithm: maxDepth() 1. If tree is empty then return 0 2. Else (a) Get the max depth of left subtree recursively .

Answered by bhattsuryansh2008
1

Answer:

Algorithm: maxDepth() 1. If tree is empty then return 0 2. Else (a) Get the max depth of left subtree recursively .

Explanation:

Similar questions