2018-04-02 17:50:56 +03:00

20 lines
329 B
JavaScript

import BinarySearchTreeNode from './BinarySearchTreeNode';
export default class BinarySearchTree {
constructor() {
this.root = new BinarySearchTreeNode();
}
insert(value) {
this.root.insert(value);
}
contains(value) {
return this.root.contains(value);
}
toString() {
this.root.toString();
}
}