Skip to content

Commit b7ec098

Browse files
committedOct 25, 2019
--fix : BST remove function
1 parent 601fd9f commit b7ec098

File tree

1 file changed

+1
-1
lines changed
  • src/_DataStructures_/Trees/BinarySearchTree

1 file changed

+1
-1
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class BinarySearchTree {
169169
}
170170

171171
remove(value) {
172-
return this.delete(this.root, value);
172+
this.root = this.delete(this.root, value);
173173
}
174174
}
175175

0 commit comments

Comments
 (0)