Why it is showing the Doubt?

Why it is showing the Doubt?


2 Test Cases are not passing, Please tell.

Please check the code whose link you have shared. It is not of the question “Increasing Decreasing Sequence”

Consider test case:
For input:
6
3
2
1
1
2
3

3 2 1(decreasing) and 1 2 3(increasing)
So Expected Output:
true

Sir Then I think I am not able to understand this. Can you please tell me the logic or the hint to solve it.

Refer this: Increasing Deccreasing Sequence

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.