I am getting run time error in this and I am not able to identify my mistake. My code is : https://ide.codingblocks.com/s/290740
K ordered LCS DP
@mayankA47 I have declared array as global, but now I am getting wrong answer. Updated code is : https://ide.codingblocks.com/s/291065
try this test case:
3 3 0
1 2 3
1 2 3
correct answer is 3 but your answer is 0.
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.