Split a sorted array into k non-empty groups so that the sum of (max − min) over the groups is as small as possible.
Split a sorted array into k non-empty groups so that the sum of (max − min) over the groups is as small as possible.
Opens with the full question.