Computer Science, asked by mareiq9283, 11 months ago

Subsetsum of an array is equal to the rest of the array sum

Answers

Answered by aanyaagrawal
0

Subsetsum of an array is equal to the rest of the array sum - 9482621.

Answered by Radhaisback2434
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