#validBST: lower=-inf, upper=inf, 判断root的左子树, 右子树是否都在范围内 #valicCBT: 判断 nodes最后一个元素的位置登不等于整个节点数 # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # # @param root TreeNode类 the root # @return bool布尔型一维数组 # import collection...