auto commit

This commit is contained in:
CyC2018
2018-04-07 15:31:23 +08:00
parent 5c1c64ce48
commit d7ba124a68
2 changed files with 90 additions and 34 deletions

View File

@ -981,7 +981,7 @@ public class BinarySearchST<Key extends Comparable<Key>, Value> {
<div align="center"> <img src="../pics//f9f9f993-8ece-4da7-b848-af9b438fad76.png" width="200"/> </div><br>
**二叉查找树** BST是一颗二叉树并且每个节点的值都大于其左子树中的所有节点的值而小于右子树的所有节点的值。
**二叉查找树** BST是一颗二叉树并且每个节点的值都大于等于其左子树中的所有节点的值而小于等于右子树的所有节点的值。
<div align="center"> <img src="../pics//8ae4550b-f0cb-4e4d-9e2b-c550538bf230.png" width="200"/> </div><br>
@ -1125,6 +1125,7 @@ private int rank(Key key, Node x) {
```java
private Node min(Node x) {
if (x == null) return null;
if (x.left == null) return x;
return min(x.left);
}