Largest bst in binary tree

question–>
https://practice.geeksforgeeks.org/problems/largest-bst/1#

code–>


it is not passing all testcases help

Hey @sheikhhaji18
Yeah looking into ur code
In the meanwhile can u please write ur algo in brief :slight_smile:

okay bro i got it ,what was wrong ,just a small change according to their testcases, it passed all test cases


thx

1 Like

Alright @sheikhhaji18 :slight_smile:

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.