Fastest way to divide numbers into N equal groups that maximizes the mean differences between every two closest groups in Python

后端 未结 0 407
[愿得一人]
[愿得一人] 2020-12-21 06:08

Say I have a list of numbers

[1,51,107,3,49,121,5,32,99,2,66,101,1,53,123,7,42,120,0,50,111]

I want to divide them into N=3 groups each with

相关标签:
回答
  • 消灭零回复
提交回复
热议问题