" 1 " is the newest insert node. It is Case 1:current node is red, father is red, uncle is red.
So we set father'color as black, uncle's color as black, father's father's color as red, and set father's father as the current node, and continue to go.
After the above operations, it is case 1 again.
Let's imagine: if it is always becomes to be case 1, the numbers of rotate will not just 2, maybe more.
My above statements are right? I want to confirm my thinking.
我有发表关于红黑树的文章,讲解很详细