Increasing decreasing subsequence

this is my code which gives the run error, please verify

There was a name error in your code. I have updated it here code

Thanks :slight_smile:

@Manu-Pillai-1566551720093198 thanks bhaiya appreciate it.

@Manu-Pillai-1566551720093198 bhaiya my collaborating mode is on can you please check which case am I missing my some cases are failing

This discussion here would help you.

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.