Provide bottom-up code
The top-bottom code is explained in the video
Please provide Bottom-up approach solution
@goyalvivek bottom up approach would simply be to first check if left and right subtrees are bst by making a recursive call to them and then checking if the current node is also a part of a BST or not
can u provide me with a code
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.