Minimize Sum of Distinct Elements in Prefixes
Filed under Chubb
The question
Rearrange an array with duplicates to minimize the sum of the number of distinct elements in every prefix.
No write-up yet. Related questions below have one.
Related Chubb questions
Collected from public candidate posts and coding forums. Updated Nov 2026.