How to determine if a graph is a Binary Search Tree given the root node using Python

I recently ran across a pretty cool challenge on Hacker rank: Cracking the coding interview series which you can find here: Is it a binary tree? Flash back real quick to what a binary tree is.  It is a graph structure composed of notes that have a left child, a right child, and the data field. Read more about How to determine if a graph is a Binary Search Tree given the root node using Python[…]