1043 Is It a Binary Search Tree (25 point(s))

题解 BST遍历。 #include<iostream> #include<cstdio> #include<vector> using namespace std; vector<int> pre, post; bool isMirror; int n; void getpost(int l, int r) { if(l > r) return; int i = l + 1, j = r;
相关文章
相关标签/搜索