(val)
| 139 | |
| 140 | // Add a new value to the tree |
| 141 | addValue(val) { |
| 142 | const n = new Node(val) |
| 143 | if (this.root === null) { |
| 144 | this.root = n |
| 145 | } else { |
| 146 | this.root.addNode(n) |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | // remove a value from the tree |
| 151 | removeValue(val) { |
no test coverage detected