CodingModerate
Minimum sum by replacing array numbers for uniqueness
Filed under BuyHatke
The question
Given an array of numbers, replace some numbers such that each integer in the array becomes unique while keeping the overall sum of the array minimum, and return that sum.
No write-up yet. Related questions below have one.
Related BuyHatke questions
Collected from public candidate posts and coding forums. Updated Nov 2026.