Find whether Binary tree is a Binary Search Tree
Property: A binary tree is a Binary Search Tree when all elements to the left is lesser than the current node and the ones to the right are greater than that node. Simplest way to understand is when you print a left node, root and right node, you should get a sorted list based on property …
Read More Find whether Binary tree is a Binary Search Tree