Professional KnowledgeVery hardIBPS SO

How many structurally distinct binary search trees can be built from the keys 1, 2, 3, 4, 5?

  1. A. 32
  2. B. 42
  3. C. 52
  4. D. 64

Correct answer: B. 42

The count is the 5th Catalan number, C5 = 42; it is not 2^5.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic