How do I find if any numbers from a set add up to a given total?

  • Thread starter Thread starter Uda Quai
  • Start date Start date
U

Uda Quai

I'm trying to find a function or formula for the following: I have a set of
10-20 numbers and a given total. I need to figure out if any combination(s)
of numbers from the set will add up to that total.

For example: Given the numbers 752, 834, 916, 705, 969, 809, 1429, 8, 63,
5127, 813, 42, 7, 1152 and 89, are there any combination(s) of these that
will total 3239? If yes, which numbers?
 
Back
Top