5 2 7 2 5 10 8
Splitting as 7 2 5 and 10 8 makes the largest part sum 18, which is optimal.
18
4 4 1 2 3 4
Each element can be its own part, so the largest part sum is the maximum element, 4.
4
6 3 5 1 2 7 3 4
One optimal split is 5 1 2, 7, and 3 4, giving largest sum 8.
8
Split an array into at most kkk non-empty consecutive parts. Minimize the largest part sum.