Given the following recursive function signature, write a recursive function that takes a set of integers, the number of integers and a target sum, your goal is to find whether a subset of those numbers adds up to the target sum. For example, given the set 3,8,1,7,-3 (where n is 5 for this set) and the target sum is 4, the result is true because the subset 3,1 sums to 4. Also, if the target is 6 the result will be true because the subset 8,1,-3 sums to 6. On the other hand, if the target is 2 then the result is false because non of the subsets can sum to 2. It is only required to return true or false. Note that: n is the number of elements in the set array and the subset could have from 1 to n elements.

[ editor.getValue() ]
window.codeValue = editor.getValue(); window.progexType= "recursion"; window.summexName= "recWIsSubsetSumPROG"; //return "openPop";