I know how to check whether a given tree is binary tree or not. But the problem is what if the tree contains duplicate values.
How to check whether a tree which may contains duplicate values is a binary search tree or not The duplicate values must be on the right side of a tree/sub tree.