Thursday, November 11, 2010

algorithm to find the correct set of numbers

Programmer Question

i have about 200 numbers:



 19.16 
98.48
20.65
122.08
26.16
125.83
473.33
125.92
3,981.21
16.81
100.00
43.58
54.19
19.83
3,850.97
20.83
20.83
86.81
37.71
36.33
6,619.42
264.53
...
...


i know that in this set of numbers, there is a combination of numbers that will add up to a certain number let's say it is 2341.42



how do i find out which combination of numbers will add up to that?



i am helping someone in accounting track down the correct numbers



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails