Skip to content

Commit

Permalink
Updates algorithm/section02.md
Browse files Browse the repository at this point in the history
Auto commit by GitBook Editor
  • Loading branch information
zhengjianglong915 committed Feb 27, 2018
1 parent 3d8a48c commit 4c897c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithm/section02.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ http://www.tuicool.com/articles/RnErui
return null;
}

### 5.4.2 删除最大结点
#### 5.4.2 删除最大结点
**思想:** 与删除最小结点类型,根据二叉搜索树的特性,最大结点是根结点的最右孩子。所以只要找到最右孩子结点,其存在左结点的话就用左结点替换否则直接删除.

public Tree deleteMax(Tree root) {
Expand Down

0 comments on commit 4c897c1

Please sign in to comment.