• retagged by
1,373 views
8 8 votes

Q.Consider a four labeled 1, 2, 3, 4. The number of distinct binary tree are possible such that whose inorder traversal is 1, 2, 3, 4 are _________


Answer must be 14 right ?

1 Answer

3 3 votes
No. of Binary Trees possible with given Order(Inorder, Preorder, or Postorder) is given by $\binom{2n}{n}/(n+1)$

So Yes Answer is 14
Position:
Show:

Related questions

14 14 votes
3 3 answers
8.0k
8.0k views
sunil sarode asked Nov 10, 2017
8,017 views
A Full Binary Tree is a binary tree where every node has either 0 or 2 children.what i knowwith Preorder and Inorder , Inorder and Postorder and Inorder and Level-order ...
0 0 votes
1 1 answer
2.1k
2.1k views
humblefool asked Nov 7, 2017
2,095 views
Given the preorder/postorder and inorder traversal of a binary tree, we can always construct a unique binary tree (I think so, correct me if I am wrong)Construct a binary...
2 2 votes
3 answers 3 answers
5.5k
5.5k views
Parshu gate asked Nov 13, 2017
5,512 views
Let T be a rooted binary tree whose vertices are labelled with symbols a, b, c, d, e, f, g, h, i, j, k. Suppose the in-order and post-order traversals of T produce the fo...
2 2 votes
3 answers 3 answers
3.6k
3.6k views
Parshu gate asked Nov 13, 2017
3,649 views
For a binary tree T,preorder traversal yields: 11,8,6,4,7,10,19,43,31,29,37,49 andinorder traversal yields: 4,6,7,8,10,11,19,29,31,37,43,49The height of the T is _____...