9,056 views
0 votes
0 votes
the number of binary trees with 3 nodes which when traversed in post order gives the sequence a,b,c

is

a)3  b)9 c)7 d)5

2 Answers

Best answer
3 votes
3 votes

I think 5 and trees are 

Postorder : Left Right Root

Since C is last in given postoder

In post order root is last So C root of trees 

A and B are placed so that ABC is postorder to make that either A is child of B or Left sibiling of B whose root is C

selected by
1 votes
1 votes
in order to get abc sequence their will be 5 binary tree possible . for that firstly u draw all unlabel binary tree and then fill accordingly by which u got postorder abc so here ans is d

Related questions

0 votes
0 votes
0 answers
1
Vikas123 asked Jan 8, 2019
731 views
Acc. to (question) my solution is...uniquely constructed binary tree PRE+POST and IN+POST…where i am wrong….
1 votes
1 votes
0 answers
2
iarnav asked Jan 6, 2018
645 views
WHAT IS THE POST ORDER IF ROOT NODE IS P?