题目描述 输入一个整数数组,判断该数组是不是某二叉搜索树的后序遍历的结果。如果是则输出true,否则输出false。假设输入的数组的任意两个数字都互不相同。 分析: 一看到后序遍历,就要反应出来:从后向前遍历数组,我可以…
标签:bst
leetcode501. Find Mode in Binary Search Tree
题目要求 Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred elem…