mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-09-20 07:43:04 +08: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…
Reference in New Issue
Block a user