single node is considered as BST or not i am missing one test case i dont y https://ide.codingblocks.com/s/212225
Missing test case
@rsaini9416624750
9
50 30 5 20 60 45 70 65 80
5 30 20 50 45 60 65 70 80
Your answer is 6 for some reason
It should be 5
If your doubt is resolved please close it
but why this happening
Hi @rsaini9416624750, the problem was the updation of no variable as when you were computing height no was updated and after every operation you are supposed to reset its value to 0 , but u were only reseting its value to 0 when no>globalmini
Here , i have corrected your code :-
https://ide.codingblocks.com/s/212412it very
my advise would be to avoid use of global variable as much as u can as since multiple function can update its value due to which it makes program complex and very hard to debug
In case of any doubt feel free to ask 
If you got the answer then mark your doubt as resolved