Forum Discussion
kristenssn
Jun 17, 2021Copper Contributor
Spread a number list into new lists as even as possible
I want to spread these 12 numbers as evenly as possible into 3, as shown in the picture. EDIT: The goal is to combine the 12 numbers in a way so the sum is as equal as possible in all 3 results....
Schnittlauch
Jun 17, 2021Iron Contributor
Hi kristenssn ,
welcome to the MTC,
just to understand you right: You want to list from these 12 numbers, number 1,4,7,10 into the yellow row 1? Or does the values related to the numbers matter aswell?
Please try to be more detailed.
Schnittlauch
welcome to the MTC,
just to understand you right: You want to list from these 12 numbers, number 1,4,7,10 into the yellow row 1? Or does the values related to the numbers matter aswell?
Please try to be more detailed.
Schnittlauch
- kristenssnJun 17, 2021Copper Contributor
Hi, thanks for answeringSchnittlauch
Not exactly, I want the numbers to spread into 1,2,3 for the sum to be as equal as possible.
For example, so the results can be:
1: 2245
2: 2210
3: 2301
As equally distributed into those 3 as possible. So if the numbers add up, the three will be get the same result.