My code is giving a wrong answer for test-case 0, even the geeks for geeks code is also giving WA for test-case 0. I have tried everything. I have used a 3D-dp, will the all the required comparisons. Please tell me why it 's not passing this test case?
Here is the link to my code: https://ide.codingblocks.com/s/245355