Data Structures | Binary Search Trees | Question 3

Last Updated :
Discuss
Comments

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

Share your thoughts in the comments