5,994 views
2 votes
2 votes
how to convert into inorder traversal if preorder traversal of binary tree is given in the problem ? exaplain using example.

2 Answers

0 votes
0 votes
To identify a Binarytree uniquely minimun pre order + in order or  post order + in order is needed .

with only pre order , or  only in order ,or only post order or pre order + post order we may can form more than one Binary tree  .
edited by

Related questions

2 votes
2 votes
3 answers
1
0 votes
0 votes
6 answers
3
Umang Raman asked Sep 25, 2015
5,614 views
The in-order traversal of a tree resulted in FBGADCE. Then pre-order traversal would result in.a)FGBDECAb)ABFGCDEC)BFGCDEAd)AFGBDEC
2 votes
2 votes
2 answers
4
Sanjay Sharma asked Oct 20, 2017
14,363 views
When inorder traversing a tree resulted inEACKFHDBG; the preorder traversal wouldreturn—(A) FAEKCDBHG(B) FAEKCDHGB(C) EAFKHDCBG(D) FEAKDCHBG