Data Structures & AlgorithmsHardGATE CS · ISRO Scientist

How many full binary trees (every node has 0 or 2 children) with n internal nodes are there for n = 5?

  1. A. 42
  2. B. 210
  3. C. 32
  4. D. 132

Correct answer: A. 42

Use the closed-form count for this family: it follows from the standard counting argument (Cayley's formula, the Catalan recurrence, or Kirchhoff's matrix-tree theorem). Each distractor is a different formula that looks similar.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic