what is the error in this ???
showing some faults segmentation or something like that
Subset sum to target
Hey @hg11110000
you are using too much memry
Reduced second argument od dp array
int dp[1002][10002]; //dp[n][sum]
In such cases we generally use hashmap because we are not using most of the space in matrix since every sum isn’t possible