Print LCS Dynamic Programming


one test case failing…
please see the problem in the code

@Bansaljatin05,
You are not handling Base cases, the i=0 row and j=0 column of your dp table.

Its handled i guess…as i have initialised the whole dp array with 0

please some one reply!!!

Hi,

I have compiled your code in the testcase which is giving wrong answer. But your code is giving correct answer. I will look into issue and reply.Wait some time…

1 Like

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.