Subsetsum of an array is equal to the rest of the array sum
Answers
Answered by
0
Subsetsum of an array is equal to the rest of the array sum - 9482621.
Answered by
0
Explanation:
the sum of array items that are equal to the target. If the sum of array item will not equal to the target I would like to get the highest sum that is less than the target.
Here is an example:
Input: [4, 6, 8, 12, 4, 6, 6, 12, 4, 4,4]
Results: [12] [12] [8, 4] [6, 6] [4,4,4] [6,4]
Note: The array item can only be used once.
Currently here is what I have right now..
Hope its help..
Similar questions