4,246 views
–1 votes
–1 votes
The following numbers are inserted into an empty bst in given order 10,1,3,5,15,12,16. What is the height of the bst( the height is the maximum distance of a leaf node from the root)

3 Answers

Best answer
3 votes
3 votes

If you consider the height of root as $0$ then Height of tree will be $3$,

else it will be $4$.

selected by
0 votes
0 votes

3 is the height (distance from root 10 to leaf 5

Related questions

2 votes
2 votes
3 answers
2
Sankaranarayanan P.N asked Jun 4, 2015
752 views
a binary search tree with n elements are constructed by randomly taking the elements one by one. What is the expected height of the tree
1 votes
1 votes
0 answers
3
Rohit Gupta 8 asked Dec 25, 2017
1,148 views
If the average depth of a node in an $n$-node binary search tree is $O(\log{n})$, then the height of the tree is$O(n\log{n})$$O(n)$$O(\log{n})$$O(\sqrt(n\log{n}))$
0 votes
0 votes
1 answer
4
Salazar asked Jan 29, 2018
3,966 views
Maximum height of a B+ tree of order m with n key values is (With Derivation), the answer is known Logceil(m/2) NI tried deriving but had some trouble, could someone assi...