OpenTable Daily Algorithm Challenge
github.com
github.com
https://github.com/opentable/ot-daily-algorithm/commit/e811a...
It will return true even when the tree is not a valid BST. Consider the case where a leaf in the left subtree contains a value higher than the root of the tree.