https://hack.codingblocks.com/contests/c/474/194
It says that sequence from s1 to si should be strictly decreasing
and si+1 to sn should be strictly increasing.
Can you please explain the given testcase regarding this.
VALID-INVALID SEQUENCE .Unable to get the test case
The given input is
5
1
2
3
4
5
So, I can take ‘1’ as strictly decreasing sequence (being a single element) and ‘2 3 4 5’ as strictly increasing sequence.
1 Like