Computer Science EngineeringHardISRO SC (CS)

How many structurally distinct binary trees (left and right children distinguished) with exactly 6 nodes have height exactly 4 edges?

  1. A. 58
  2. B. 56
  3. C. 55
  4. D. 112

Correct answer: B. 56

Count with the recurrence over left-subtree sizes, then take (height <= 4) minus (height <= 3): 56.

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

Exams that ask this topic