• retagged by
808 views

1 Answer

Best answer
1 1 vote
In worst case that's either left or skewed.. searching number may be present at leaf node.. so for worst case it's O(n)..

For balanced binary search tree it's O(log n)..
• selected by
Position:
Show:

Related questions

3 3 votes
0 0 answers
1.4k
1.4k views
4 4 votes
2 2 answers
2.4k
2.4k views
Parth Shah asked Dec 11, 2018
2,432 views
Suppose binary tree has only three nodes A,B and C, and you are given the post order traversal of tree as B-A-C . The exact pre order traversal of the tree is?A)C-A-BB)A-...
2 2 votes
1 1 answer
1.1k
1.1k views
charul asked Jan 3, 2018
1,078 views
i'm getting 5 but the answer given is 4
2 2 votes
1 1 answer
1.3k
1.3k views