We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7e27b2 commit b62d9a4Copy full SHA for b62d9a4
src/data-structures/tree/binary-search-tree/BinarySearchTree.js
@@ -5,8 +5,7 @@ export default class BinarySearchTree {
5
* @param {function} [nodeValueCompareFunction]
6
*/
7
constructor(nodeValueCompareFunction) {
8
- this.nodeValueCompareFunction = nodeValueCompareFunction;
9
- this.root = new BinarySearchTreeNode(null, this.nodeValueCompareFunction);
+ this.root = new BinarySearchTreeNode(null, nodeValueCompareFunction);
10
}
11
12
/**
0 commit comments