What is the average case time complexity for finding the height of the binary tree?

What is the average case time complexity for finding the height of the binary tree? Correct Answer h = O(log n)

The nodes are either a part of left sub tree or the right sub tree, so we don’t have to traverse all the nodes, this means the complexity is lesser than n, in the average case, assuming the nodes are spread evenly, the time complexity becomes O(logn).
Bissoy MCQ

Related Questions

A tree is cut partially and made to fall on ground. The tree however does not fall completely and is still attached to its cut part. The tree top touches the ground at a point 10m from foot of the tree making an angle of 30°. What is the length of the tree?