please check and correct the code and please also add the comment where correction is done.
Wrong Output in code Longest subsequence approch -1
for which input it is showing wrong ans ??
code is looking correct and
for this input correct ans is 4
10
3 1 2 4 19 44 20 21 34 35
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.