GATE Computer ScienceModerateGATE CSE

How many structurally distinct binary search trees can be built from 7 distinct keys?

  1. A. 132
  2. B. 430
  3. C. 429
  4. D. 5040

Correct answer: C. 429

The count is the Catalan number C7 = (1/8)·C(14,7) = 429.

More Programming and Data Structures (GATE) questions

Exams that ask this topic