https://practice.geeksforgeeks.org/problems/check-for-bst/1
Answer is geting wrong. Please Check Bhaiya @phantom
https://practice.geeksforgeeks.org/problems/check-for-bst/1
Answer is geting wrong. Please Check Bhaiya @phantom
the problem is with ur return statement
just take a example which is acting as a bst but not in 1/2 nodes and make a recurrence tree u will find ur error
for a simpler code
check this