Check if a Binary Tree is a Binary Search Tree

In my last post we saw the basic tree traversal methods implemented in Swift. In this post we’re going to demonstrate applying such techniques in solving a real problem. Well, real in the sense that this problem was an interview question actually…