2017年11月9日

二叉搜索树的后序遍历序列

摘要: 题目描述 输入一个整数数组,判断该数组是不是某二叉搜索树的后序遍历的结果。如果是则输出Yes,否则输出No。假设输入的数组的任意两个数字都互不相同。 1 class Solution { 2 public: 3 bool judge(vector<int>& a,int l,int r) 4 { 5 阅读全文

posted @ 2017-11-09 09:42 wsw_seu 阅读(128) 评论(0) 推荐(0) 编辑

导航