Cracking-the-Coding-Interview-TypeScript
Cracking-the-Coding-Interview-TypeScript copied to clipboard
Node.isBinarySearchTree, from Adjacency List, doesn't work if the node is not a valid tree
Currently, there are no checks in place to verify that the Node is actually part of a tree. This means, this function may recurse forever (until crash).