I need a program that accepts a binary tree in postorder and inorder and outputs the binary tree in preorder sequence. Traversion of the binary trees should be done using LINK INVERSION.
The program also has to read the inputs from a single file only and place the output in a separate file also.
example:
postorder: GROLHMTIA
inorder: GLROAIHTM
preorder: ALGORITHM
Please help!