mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-08 02:14:56 +08:00
@ -155,7 +155,7 @@ export default class RedBlackTree extends BinarySearchTree {
|
|||||||
parentNode.parent = null;
|
parentNode.parent = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Swap colors of granParent and parent nodes.
|
// Swap colors of grandParentNode and parentNode.
|
||||||
this.swapNodeColors(parentNode, grandParentNode);
|
this.swapNodeColors(parentNode, grandParentNode);
|
||||||
|
|
||||||
// Return new root node.
|
// Return new root node.
|
||||||
|
Reference in New Issue
Block a user