Use integer index for DP existence answer solution to subset sum problem