My code giving giving wrong-answer. What is the error ?
Code Link: https://ide.codingblocks.com/s/160561
K-Ordered LCS problem
I have edited your code, in the LCS function , instead of returning the value, I have used a separate variable res to store the result and then copy that value at the end in the 3-d dp array… I hope you understood it…
2 Likes