Data Structures & AlgorithmsHardGATE CS · TCS NQT · Product Company SDE

Keys 75, 52, 51, 68, 44, 20, 77, 85 are inserted in this order into an empty BST. How many nodes lie in the left subtree of the root (75)?

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

Correct answer: A. 5

Keys smaller than 75 go left: 5 nodes (the right subtree has 2).

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic