Search⌘ K
AI Features

Solution: Split Array Largest Sum

Solution: Split Array Largest Sum asks you to divide an integer array into a specified number of non-empty contiguous subarrays and return the smallest possible value of the largest subarray sum.

Statement

Given an integer list nums and an integer k, split nums into k non-empty subarrays such that the largest sum among these subarrays is minimized. The task is to find the minimized largest sum by choosing the split such that the largest sum of every split of subarrays is the minimum among the sum of other splits.

Constraints:

  • 1≤1\leq nums.length ...