Maximum length bitonic sequence

sir why i am getting wrong anwser in test case output
are correct for all test case

hello @YASHMATHURIA123
image
here it should be >= i place of >

inside else it should be inc[i]=1

same with other for loop

sir now my code giving me tle sir please help in it

ur updated code -> https://ide.codingblocks.com/s/282665

sir the code still showing tle in one test case

image
it is working in my machine,pls try to submit again

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.