-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd51538
commit 2d7f74f
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 红黑树RB-Tree | ||
|
||
首先明确下红黑树满足的性质有: | ||
|
||
1. 结点为黑色或者红色 | ||
2. 根结点为黑色 | ||
3. 一个结点为红色的话,它的两个孩子都是黑色 | ||
4. 一个结点到任一叶子结点的路径中黑色结点个数相同(不包含该结点) | ||
5. 每个叶子结点都是黑色 | ||
|