In a m-ary tree, what is the time complexity for search, if the tree is balanced?
Answers
Answered by
13
Explanation:
Otherwise it is unbalanced
✍
Answered by
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