diff --git a/ranked_tree.js b/ranked_tree.js index 6963715..8ce15e1 100644 --- a/ranked_tree.js +++ b/ranked_tree.js @@ -139,13 +139,14 @@ class RankedTree { successor.value = null; this.record( "Replacing the value of deleted node with successor value", - node + node, + successor ); return this.deleteNode(successor); } - this.record("Replacing the node with one of its children", node); + this.record("Replacing the node with one of its children", node, y); return [y, parent]; }