MCPcopy Create free account
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / BST

Class BST

binary-trees/validate-bst.js:1–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class BST {
2 constructor(value) {
3 this.value = value;
4 this.left = null;
5 this.right = null;
6 }
7}
8
9function validateBst(tree) {
10 return validateBstHelper(tree, -Infinity, Infinity);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected