我有一个排列的数组,我想将它分成3个部分,以便它们的总和彼此最接近.
Ex: I have this array: 10,8,7,6,5 so it'll be divided into 3 part like: p1 {10,8} sum = 18 p2 {8,6} sum = 21 p3 {6,5} sum = 17