Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bcad3b6

Browse files
committed
fix: undefined due to node.data
1 parent 9033d3a commit bcad3b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/_DataStructures_/Trees/BST/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class BinarySearchTree {
109109
// eslint-disable-next-line no-param-reassign
110110
root.value = minRightNode.value;
111111
// eslint-disable-next-line no-param-reassign
112-
root.rightChild = this.delete(root.rightChild, minRightNode.data);
112+
root.rightChild = this.delete(root.rightChild, minRightNode.value);
113113
return root;
114114
}
115115
return root;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /