LIS Please help

https://ide.geeksforgeeks.org/awyHBRuDWl
longest increasing subsequence not getting right ans

@arsh_goyal hey here is corrected code ,please check it:

NO its again wrong
Please help

@arsh_goyal hey bro its working fine and I have submitted it on hacker blocks also,please check it again.

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.