Computer Science, asked by harshad4225, 11 months ago

In a m-ary tree, what is the time complexity for search, if the tree is balanced?

Answers

Answered by choudhary21
13

Explanation:

Otherwise it is unbalanced

Answered by RAthi21
1

hello!

_____

To check the if a tree is height balanced then get the height of left and right subtrees.

if difference between heights is not more than 1 and left and right subtrees are balanced, otherwise unbalanced.

Similar questions