How to construct binary tree if only information given is post order traversal. Having googled on subject, i understood in such case there can't be unique constructed binary tree. But if given Integers it becomes easy to create BT based on less or greater then property . But if we have alphabet then i'm not able figure out on what basis we make left node or right node of Parent Node. Here is question which i'm trying to solve .
Q) The post-order traversal of a binary tree is DEBFCA .Find out the pre-order traversal?
Options :
(A) ABFCDE
(B) ADBFEC
(C) ABDECF
(0) ABDCEF
Correct Answer is : C
Can someone explain how do we reach to answer.
I found this answer https://www.quora.com/If-the-post-order-traversal-of-a-binary-tree-is-DEBFCA-how-can-I-find-out-the-pre-order-traversal/answer/Eugene-Yarovoi?srid=zy7j very helpfull but 3rd step onwards i don't understand how things are happening. Thanks for your time