Merge pull request #589 from YifengWu08/master

更新98.验证二叉搜索树 (把节点10小于左节点5,大于右节点15  改为  节点10大于左节点5,小于右节点15)
This commit is contained in:
程序员Carl
2021-08-13 09:36:33 +08:00
committed by GitHub

View File

@ -103,7 +103,7 @@ if (root->val > root->left->val && root->val < root->right->val) {
![二叉搜索树](https://img-blog.csdnimg.cn/20200812191501419.png)
节点10于左节点5于右节点15但右子树里出现了一个6 这就不符合了!
节点10于左节点5于右节点15但右子树里出现了一个6 这就不符合了!
* 陷阱2