1020. Tree Traversals (25) Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the corresponding binary tree.…
the problem is from pat,which website is http://pat.zju.edu.cn/contests/pat-a-practise/1020 and the source code is as followed. #include<iostream> #include<cstdlib> #include<queue> using namespace std; ; typedef struct Tree { Tree *le; T…