Largest BST In A Bt

test cases are failing but working properly plz tell the error in my code

@ayush1213
You are required to display the count of the no of nodes in the largest BST rather than its height.

means i have to found the largest bst first and than return the count of nodes @tarunluthra is this what u are saying

@ayush1213
Yes. You are displaying the height of the largest size whereas you should display the count of its nodes.

1 Like

ok thanks for the explanation

@ayush1213
Kindly mark this doubt as resolved in your doubts section if your issue is solved. However , if you still need any further help regarding this doubt , let me know.

My code is not satisfying the test cases. I am printing the no. of nodes in the BST.

please tell me which test case it will not satisfy

@tarunluthra my code is not satisfying test case 3. Please help.

@sidharthkumar_2019
I would suggest you to open a new doubt thread for your doubt. Go to your course and use the ‘Ask Doubt’ button over there and ask your doubt. A TA will respond to it soon.
Asking doubts through the Ask Doubt button helps us keep track of the doubts and respond regularly.