题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3999 题意:给一序列,按该序列插入二叉树,给出字典序最小的插入方法建相同的一棵树出来.即求二叉树的先序遍历. #include<bits/stdc++.h> using namespace std; struct node { int v; node *left,*right; }*root; node* build(node *root,int v) { if(root==NULL) { roo…