mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-12-08 19:06:00 +00:00
parent
ebd6ffd2c0
commit
8a12653ac3
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user