Could You Please look at the code where I am going wrong other than test case 1 all are passing. In Test case 1 I am getting run time error
Runtime Error On The Test Case 1
hello @vikram.keswani108

sum can be upto 10^7 .
so u cannot use 2d dp .
use linear dp for this problem .
click me
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.