Write a function that determines if a tree is a BST or not
Anonymous
A good way to start out is to confirm the understanding of what a BST is. It's a tree where each node has 0,1, or 2 children. The left child is smaller and the right child is larger. The solution consists of traversing the tree recursively, and returning false, if the above rules are violated. True otherwise
Check out your Company Bowl for anonymous work chats.