(对于root来说给定最大值为Integer.max,最小值为Integer.min,然后递归判断左子树的根节点,最小值是Integer.min, 最大值时根节点的值,以此递归) defis_valid_bst(root)returnhelper(root, 1 << 32, -(1 << 32)) enddefhelper(root, max, min)returntrue unless rootreturnfalseifroot.val >= max ||...