Increasing Decreasing Sequence

Hi Mohit,

Have some doubts with increasing/decreasing sequence.
the sample input uses 5 1 2 3 4 5 as input ,which can not be split into two sequences of strictly increasing and decreasing . But the sample output says “true” .
Shouldn’t that be false ?

Also , Can you please check my code in

Can someone please help

Hey,
the first part should be strictly decreasing and second part should strictly increasing.
We can break this sequence as [1], [2,3,4,5]. since the first part has only 1 element which can be considered as strictly decreasing or strictly increasing , and the second part u can see clearly as increasing. Therefore this test case is true