弱鸡想法:
前序和中序确定一个树
所以求出每个树的前序和中序序列然后看是否相同
#include <iostream>
#include <string>
#include <string.h>
using namespace std;
string preorder_1="";
string midorder_1="";
string preorder_2="";
string midorder_2="";
typedef struct node
{
int data;
struct node *lchil...