摘要: 思路:先序序列的每个元素代表一个根节点,这个元素在中序序列中左边的部分就是它的左子树,右边部分就是它的右子树代码如下(求树深度的部分是多余的):#includeusing namespace std;int N;string xian,zhong;struc... 阅读全文
posted @ 2018-05-14 16:29 Apale 阅读(781) 评论(0) 推荐(0)