What is the error..it is giving adress as output
hello @garganshul151
i think it is printing garbage value.
initialise ur dp array completely wiht 0.
and thn try
it is correct.
change ur input for other values
because for ur input answer was 0.
chnage input for different output.
ex->
