We are given a set of n distinct elements and an unlabelled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree? (GATE CS 2011)
0
1
n!
(1/(n+1)).2nCn
This question is part of this quiz :
Top MCQs on Binary Search Tree (BST) Data Structure with Answers