the last test case is not working.I am not able to find the issue.
Increasing decreasing sequence
hi shubhi
check for this input
5
5 4 1 2 2
its coming out to be true
but ans is false the question says strictly increasing or decreasing
like 2 3
not 2 2
what change should I do in the code then?
also put = in line 17 and 21
its still coming out to be true.
check this
It worked.Thankyou for the help.
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.