auto commit
This commit is contained in:
@ -602,6 +602,7 @@ public Node rotateLeft(Node h) {
|
|||||||
public Node rotateRight(Node h) {
|
public Node rotateRight(Node h) {
|
||||||
Node x = h.left;
|
Node x = h.left;
|
||||||
h.left = x.right;
|
h.left = x.right;
|
||||||
|
x.right = h;
|
||||||
x.color = h.color;
|
x.color = h.color;
|
||||||
h.color = RED;
|
h.color = RED;
|
||||||
x.N = h.N;
|
x.N = h.N;
|
||||||
|
Reference in New Issue
Block a user