Why it is giving tle in all test cases plz check my logic

i have taken pair of pair current bst length,max bst length

code is in submission

Hello @mohitsingh please share your code here by saving it on Ide.codingblocks.com

now i have corrected my one mistake so it is not giving tle but one test case is not passing plz check the submission

@mohitsingh your code is producing even the correct result for that case as well have just checked.
did you check your logic on leetcode if it is passing test cases or not?

it is in premium subscription and but when i submit it is giving me wrong answer in one test case

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.

plz reply one test case not passing

@mohitsingh try to submit your logic here once

@tarunluthra
@rhlbhrdwj3
pls check

it has passed all test cases but not on geeks i am unable to understand