Sample test cases passing but not testcases

whats the problem with my code .Help me rectify it .


Reply ASAP.

@D19APPPP0016 Hey you are creating subarrays that stores the longest increasing/decreasing subsequence, but we need subarray. So we just need to look the immediate previous element only.

Can u provide the modified code

Or describe the problem in more detail

Reply fast ,it has been more than 10 hours

Provide with me your code

@D19APPPP0016 Sorry I missed your post.


I hope this helps