This is an interview question. I'm given an array of numbers (duplicates, negative numbers possible) and the lower and upper limit of a range. I need to find the number of subsets possible which will sum to a number within the range. I did look at the question which looks for a particular sum (find all subsets that sum to a particular value) but I don't think trying to do that for every number in the range is the most efficient thing to do.
Range can be from -10^7 to 10^7.