← All problems
Split Array Largest Sum
Given an integer array and an integer k, split the array into k contiguous subarrays to minimize the largest sum among the subarrays, and return that minimized largest sum. Binary-search the answer space.
Complexity
Time O(n log sum), Space O(1)
Common pitfalls
- DP when constraints allow binary search
- Feasibility counting errors
Your solution
Log in to save your code and track progress.