Computer Science EngineeringVery hard

How many structurally distinct binary trees exist with 5 nodes?

  1. A. 32
  2. B. 30
  3. C. 42
  4. D. 40

Correct answer: C. 42

The count is the Catalan number C5 = 42.

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

Exams that ask this topic