Hey i have a doubt in checking if binary tree is a bst


this is my code
can you tell me how to check if all left nodes are less than root nodes and right nodes aare larger than root node in my code.
thank you

@Dhruv-Miglani-2090236747707980 There is already a lecture video on Checking BST in the trees section. Please refer that. If by chance you have doubt after referring that, then you can reply back.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.