摘要:
#include<bits/stdc++.h>#define endl '\n'#define INF0x3f3f3f3f#define int long longusing namespace std;const int N =1e4 + 10;int a[N],b[N];int n; //找左节 阅读全文
摘要:
已知先序中序求后序 #include<bits/stdc++.h> using namespace std;const int N = 1010;int pre[N],in[N],post[N]; // 先序.中序.后序int k;struct node{ int value; node *l,*r 阅读全文