Computer Science EngineeringVery hardISRO SC (CS)

Keys [19, 9, 59, 90, 32, 4, 28] are inserted into an empty binary search tree (no balancing). The height of the tree in edges is:

  1. A. 4
  2. B. 3
  3. C. 2
  4. D. 5

Correct answer: B. 3

Build the BST by successive insertion; the longest root-to-leaf path has 3 edges.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic