Each move adds 1 to one element. Find the fewest moves that make every value in the array unique.
Each move adds 1 to one element. Find the fewest moves that make every value in the array unique.
Unlock the full question, the code runner with test cases, and reference solution
One-time unlock. Yours forever.
Or get a for every question, unlimited code runs and AI mock interviews.
Opens with the full question.