Fix BST removal method.

This commit is contained in:
Oleksii Trekhleb
2018-06-13 06:39:18 +03:00
parent d57b725034
commit c3a961840d
7 changed files with 30 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ export default class BinarySearchTree {
/**
* @param {*} value
* @return {BinarySearchTreeNode}
* @return {boolean}
*/
remove(value) {
return this.root.remove(value);