Hello, I am not able to solve the problem, I guess the logic is right but TC are not able to pass. Please help with it.
Max Length Biotonic subarray
@naivecoder010
According to our system, I can see that you have now solved the question and got 100 points. I hope you got the logic. If any doubts you can ask me.
Hey @abhinandankainth1999 , I don’t understand where my logic fails, can u provide me a test case where my Logic fails.
Logic:-
Iterating through an array and adding 1 to length if a[i]<a[i+1] for all i<k;
Now if i find a[i]>a[k] then start the second pass( a[i]>a[i+1] for all i>k) also i keep a count of length of second counter separately if no are equal.
and update when we transit from descent to ascent using dummy_length.
can u provide me some test cases or verify the code i wrote. Please help
I had changed some code have a look over it.
And please tell me how to unlock test cases i am not able to do it.
https://hack.codingblocks.com/app/contests/1350/1281/problem
Click on solution and then click on unlock test cases.