What is the number of binary search trees with 20 nodes with elements 1,2,3,...,20 such that the root of the tree is 12 and the root of the left sub tree is 7 ? a) 2634240 b) 1243561 c) 350016 d) 2642640
An explanation along with the answer would be helpful.
I have applied the Catalan number formula but the result is inappropriate from the options, so this is just to be sure.
math.stackexchange.com, unless you're expected to solve this by implementing some kind of brute force search.