Computer Science EngineeringHard

A binary tree has exactly 15 nodes with two children. How many leaves does it have?

  1. A. 15
  2. B. 16
  3. C. 14
  4. D. 31

Correct answer: B. 16

In any binary tree, leaves = (nodes with two children) + 1 = 16.

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

Exams that ask this topic