in Algorithms
13,145 views
4 votes
4 votes

The post order traversal of a binary tree is DEBFCA. Find out the pre-order traversal

  1. ABFCDE
  2. ADBFEC
  3. ABDECF
  4. None of the above
in Algorithms
13.1k views

2 Answers

4 votes
4 votes
Best answer

PreOrder Traversal:-ABDECF

Hence,Option(C)ABDECF

selected by

1 comment

How to draw tree with postorder only or with postorder and inorder only?
0
0
2 votes
2 votes

although unique tree can not be drawn just by post order to answer we have to search a possible pre-order

which can be as below (ABDECF)  so ans is C since A is at last in post order so it must be root so one possible tree is

Answer: