Increasing Decreasing Sequence TESTCASE #5 and #8 FAIL

I dont know where my program is going wrong please help.

[https://ide.codingblocks.com/s/100846]

for input-
5
5
4
5
4
3
Output should be false but your output is true

1 Like

Thanks!! let me go through it again.

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.

1 Like