given postorder and inorder,output preorder

solved
Last edited on
please help~
I honestly have no clue of what you want, all these preorder, inorder, postorder.

input format:
DBACEGF ABCDEFG
BCAD CBAD
Output format:
ACBFGED
CDAB


I also dont get this. How does the input create that output and why?
Topic archived. No new replies allowed.