DFS建树,遍历序列
#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
const int N = 40;
int n;
int pre[N], post[N];
vector<int> in;
bool is_unique = true;
void dfs(int preL, int preR, int postL,
DFS建树,遍历序列
#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
const int N = 40;
int n;
int pre[N], post[N];
vector<int> in;
bool is_unique = true;
void dfs(int preL, int preR, int postL,