Available question text
Split the array into contiguous subarrays to minimize the total cost where each segment costs k plus the number of elements in that segment that appear more than once (the "trimmed" length). The core challenge is optimizing partitioning when segment cost depends on internal frequencies (n ≤ 1000), typically solved with DP using precomputed subarray costs.
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 2547. Minimum Cost to Split an Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source