已知树的两种遍历求第三种一、已知先序遍历和中序遍历,求后序遍历二、已知中序遍历和后序遍历,求先序遍历三、已知先序遍历和后序遍历,求中序遍历
一、已知先序遍历和中序遍历,求后序遍历#include<bits/stdc++.h>using namespace std;typedef struct TreeNode{ struct TreeNode* left; struct TreeNode* right; char elem;}TreeNode;TreeNode* BinaryTreeFromOrd...