Help me!, I would like to find split where the split sums are close to each other?

k.ademarus at gmail.com k.ademarus at gmail.com
Sun Oct 16 07:25:27 EDT 2016


Help me!, I would like to find split where the split sums are close to each other?

I have a list is

test = [10,20,30,40,50,60,70,80,90,100]

​and I would like to find split where the split sums are close to each other by number of splits = 3 that ​all possible combinations and select the split where the sum differences are smallest.

Please example code or simple code Python.

Thank you very much

K.ademarus



More information about the Python-list mailing list