@evo85210 wrote:
I was wondering if it’s possible to group numbers into a list so that each list would have a sum close to a number i specified?
for example, i have numbers:
1,3,5,6,7,9,12
and i want a sum of list to be as close to 12 as possible
so it’d split these number into lists like:
[0] 12
[1] 9, 3
[2] 7, 5
[3] 6,1is this possible?
Posts: 3
Participants: 2