Cracking-the-Coding-Interview-TypeScript icon indicating copy to clipboard operation
Cracking-the-Coding-Interview-TypeScript copied to clipboard

Node.isBinarySearchTree, from Adjacency List, doesn't work if the node is not a valid tree

Open Braden1996 opened this issue 5 years ago • 0 comments

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).

Braden1996 avatar Feb 16 '19 18:02 Braden1996