edited by
22,659 views
27 votes
27 votes

The following numbers are inserted into an empty binary search tree in the given order: $10, 1, 3, 5, 15, 12, 16$. What is the height of the binary search tree (the height is the maximum distance of a leaf node from the root)?

  1. $2$
  2. $3$
  3. $4$
  4. $6$
edited by

6 Answers

–3 votes
–3 votes
Why not height at root considered as 0
As per that the height is 2
Please correct me
Answer:

Related questions

32 votes
32 votes
5 answers
2
Kathleen asked Sep 18, 2014
12,944 views
Assume that the operators $+, -, \times$ are left associative and $^\hat{}$ is right associative. The order of precedence (from highest to lowest) is $ \ ^\hat{}, \times,...
25 votes
25 votes
3 answers
3
Kathleen asked Sep 16, 2014
23,511 views
Suppose the numbers $7, 5, 1, 8, 3, 6, 0, 9, 4, 2$ are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering o...
103 votes
103 votes
11 answers
4