Please help with the following code:
Test Case 9 is not passed in my code
Hello @prkfoxxx,
You have missed an important part of the question:
The sequence is strict i.e. same numbers at contiguous places are not allowed.
Example:
5
1
2
2
3
4
Expected Output:
False
Your Output:
True
Hope, this would help.
Give a like, if you are satisfied.
Still not getting the correct answer i am not able to catch up at what point i am making mistake
Hello @prkfoxxx,
You must have not corrected it properly for the case i have specified in my previous reply.
I have modified the code:
Now, it’s passing all the cases.
Hope, this would help.
Give a like, if you are satisfied.