Skip to main content

Practice · 4 of 5

Split Without Overload

CHALLENGE
Difficulty: advanced+25 XP

**Bài toán.** Split an ordered list of n jobs into at most k consecutive groups so that the largest group sum is minimized. Print that minimized maximum. **Constraints:** 1 ≤ k ≤ n ≤ 100000; 1 ≤ a[i] ≤ 10^9. **Output:** one integer. Feasibility is monotone in the answer — exploit it.

Back to lesson: Practice: Observation Drill — Five Hidden Structures