this is my code
Last test case is failing
Hello @Gautampriyadarshi,
-
Read the constraints specified in the question carefully.
0 < N < 1000 -
As the sequence should be strict.
Example:
5 1 1 3 4 5
Expected Output:
false
Reason:
In a strict sequence, the consecutive elements should not be the same.
Hope, this would help.
if sequence is 3 2 1 1 2 3 what should be the output
I asked for explanation of quesion then it was told that 3 2 1 1 2 3 should give true