UGC NET Paper 2 (Computer Science)Hard

The number of distinct binary search trees on keys 1 to 4 is:

  1. A. 14
  2. B. 24
  3. C. 10
  4. D. 12

Correct answer: A. 14

Catalan C4 = 14; 24 is the number of permutations, many of which give the same tree.

More UGC NET Computer Science and Applications questions

Exams that ask this topic