Quantcast
Channel: 《数据结构之红黑树》的评论
Viewing all articles
Browse latest Browse all 12

由:jbingqiang

$
0
0

3. 情况4的本质是:把S的黑色给N的祖先,这使得N树的黑色深度加1, SR由红变黑,相当于S的右子树的黑色深度没有变化,从而维持整棵树的红黑性质。


Viewing all articles
Browse latest Browse all 12