Available question text
Partition nums into k contiguous subarrays (with starts s0=0<s1<...<s_{k-1}) to minimize the sum of each subarray's first element, subject to the constraint s_{k-1}-s1 ≤ dist. The core challenge is a DP over start indices with range-limited transitions (windowed coupling between early and late starts) that requires efficient sliding-window/monotonic optimizations.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3013. Divide an Array Into Subarrays With Minimum Cost II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source