Data Structures & AlgorithmsEasyTCS NQT · Wipro pattern

A full binary tree (every node has 0 or 2 children) has 10 internal nodes. How many leaves does it have?

  1. A. 11
  2. B. 10
  3. C. 20
  4. D. 9

Correct answer: A. 11

In a full binary tree, leaves = internal nodes + 1 (each internal node adds two child slots, and every node except the root fills one). 10 + 1 = 11. '20' counts the child slots, not the leaves.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic