Maximum Length biotonic

My code is giving an anonymous output. I don’t know what is the problem in my code.

@Saksham_Agarwal
you are doing
max= max + (inc[i] + dec[i-1]); what is “i” here?
and also dont use same variable for your testcase counter and in your code.
I have made the requirec changes please have a look;

What does this line mean (ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL):wink: in the code?.

It fastens the input and output.

I didn’t know it. Thanx for telling me :innocent:

1 Like

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.