Https://ide.codingblocks.com/s/240332


Wrong answer

@Shlok,

build strg[str1.length()+1][str2.length()+1] in bottom up fashion.

Further you can check your code for the following test case. Your code gives a wrong answer for that:

Input:
tydddmjkyuxghkehsuncob
utcqknuvdfzmjyvikrdwte
Correct answer:
tdmjyke

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.