ProgrammingHard

A binary search tree is built by inserting 5, 3, 8, 1 in that order. How many nodes are in the left subtree of the root?

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

Correct answer: A. 2

The root is 5. Its left subtree holds 3 and 1, which makes two nodes.

More C Programming questions

Exams that ask this topic