K_lcs problem in hakerblock


I am getting wrong answer in 2 test cases don’t know my fault

hi @sraj39273 write
if(i>=n||j>=m) return 0;
not n-1 and m-1 then you’ll not check last index and return beforehand

ya it worked all test cases passed thanks

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.