We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312e43a commit 34593cbCopy full SHA for 34593cb
src/_DataStructures_/Trees/BST/index.js
@@ -14,13 +14,11 @@ class BinarySearchTree {
14
}
15
16
if (value < root.value) {
17
- // go left
18
// eslint-disable-next-line no-param-reassign
19
root.leftChild = this.insert(root.leftChild, value);
20
return root;
21
22
if (value > root.value) {
23
- // go right
24
25
root.rightChild = this.insert(root.rightChild, value);
26
0 commit comments