Available question text
Given an integer array, compute the minimum number of +1 moves needed to make all elements distinct — a problem typically solved by sorting (or counting/bucketing) and greedily pushing duplicates to the next available integers to minimize total increments. Constraints (n, value ≤ 1e5) allow O(n log n) sorting or linear counting solutions.
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 945. Minimum Increment to Make Array Unique
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source