Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Split Array Largest Sum

Split an array of non-negative integers into k non-empty contiguous subarrays so that the largest subarray sum is as small as possible. Print that minimum largest sum.

Constraints

1 <= k <= n <= 1000 0 <= nums[i] <= 10^6

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.