NeetCode #774LC-945MediumGreedy
← Back to All Problems

#774 · #945 · Minimum Increment to Make Array Unique(使数组唯一的最小增量)

📌 Problem Statement & Constraints

Given an integer array nums, in one move you may increment any element by 1. Return the minimum number of moves to make every value in nums unique. Constraints: 1 <= nums.length <= 10^5, 0 <= nums[i] <= 10^5.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!