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