i am able to pass 6 testcases but still not able to pass 3 more https://ide.codingblocks.com/s/201536
Increasing Decreasing Sequence
According to the question, the following possibilities may arise after splitting a sequence into two sequences:
-First Sequence is strictly decreasing , 2nd sequence is strictly increasing–> return true
-First Sequence is strictly increasing, 2nd sequence strictly decreases-------> return false
-If one sequence is empty and the other sequence is strictly increasing/decreasing—>return true.
Consider test case:
For input:
6
3
2
1
1
2
3
Now this splits into 2 sequences-- 3 2 1(decreasing) and 1 2 3(increasing)
So Expected Output:
true
check the example here aapka testcase pura different hai insai
I am not able to access the above link.
Please paste the question along with the sample test case here.