You are given an integer array nums.
In one operation, you remove the first nums. If the array contains fewer than
Return the minimum number of operations required to make all elements in nums distinct.
Note: An empty array is considered to have distinct elements.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
In one operation, you remove the first nums. If the array contains fewer than
Return the minimum number of operations required to make all elements in nums distinct.
Note: An empty array is considered to have distinct elements.
Constraints:
nums.length
nums[i]