Consider we have a set of n numbers, and we want to calculate the number of subsets in which the addition of all elements equal to x. Input first line has n, x and the next line contains n numbers of our set. In the output we have to calculate the number of subsets that have total sum of elements equal to x.
asked 19 Oct '15, 03:22

http://stackoverflow.com/questions/18305843/findallsubsetsthatsumtoaparticularvalue refer to it answered 19 Oct '15, 13:25

array = [1] + [0] * (sum) pleas explain above? answered 04 Apr '16, 17:32

constraints.??