Problem :
My Solution : https://ide.codingblocks.com/s/228179
Why I am getting wrong answer ?
check the code link again
it is not for checking given tree is Bst or not
Yes, its not for checking the tree is bst or not. I have mentioned the problem statement which is https://hack.codingblocks.com/app/contests/1499/1601/problem. My solution is https://ide.codingblocks.com/s/228245