← All problems

Split Array Largest Sum

Hard searchingdynamic programminggreedy LeetCode ↗
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.

Hints (0/3 revealed)

Log in to reveal hints progressively.

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.