How many different binary search trees can be constructed using six distinct keys?
The first few Catalan numbers for n=1, 2, ... are 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796,
or we can use formula 2nCn/(n+1)
12C6/7 12*11=132
good read: https://gatecse.in/number-of-binary-trees-possible-with-n-nodes/
64.3k questions
77.9k answers
244k comments
80.0k users