sir , in sample input , it is given
1 2 3 4 5
which means the sequence is only increasing ,so how this could be both decreasing and increasing as it is given true in sample output ???
sir , in sample input , it is given
1 2 3 4 5
which means the sequence is only increasing ,so how this could be both decreasing and increasing as it is given true in sample output ???
Hey @gargshivam2001
If a sequence does not meet any of the above criteria , we return “false” for it.
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.