mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-26 23:21:18 +08:00
Clean up in binary search tree constructor.
This commit is contained in:
parent
b7e27b2f07
commit
b62d9a43b4
@ -5,8 +5,7 @@ export default class BinarySearchTree {
|
||||
* @param {function} [nodeValueCompareFunction]
|
||||
*/
|
||||
constructor(nodeValueCompareFunction) {
|
||||
this.nodeValueCompareFunction = nodeValueCompareFunction;
|
||||
this.root = new BinarySearchTreeNode(null, this.nodeValueCompareFunction);
|
||||
this.root = new BinarySearchTreeNode(null, nodeValueCompareFunction);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user