Increasing and Decreasing Functions


Please tell the mistake in my code

Hey @G_rahil
According to me, your approach is wrong, can yo explain your idea ?
also, dry run your code on: 1 6 3 4 2 5 , this sequence should return false

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.