Gate
Exam
We are given a set of n distinct elements and an unlabeled 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?
Read Solution (Total 1)
-
- binary search tree is 2^n-1 nodes
- 11 years agoHelpfull: Yes(0) No(0)
Gate Other Question