I tried submitting the code but the first 2 test cases are not passing.
LINK : https://ide.codingblocks.com/s/358806
Subste Sum to Target
i think u r getting run error because of this . use long long int
if this resolves your doubt please mark it as resolved
It is still showing the same error.
Kindly reply as soon as possible.
yeah , make your dp definition global i.e define it outside the function
Kindly edit this code of mine. Iām not able to solve the issue. LINK : https://ide.codingblocks.com/s/359618
sure
if this resolves your doubt please mark it as resolved