1481. Least Number of Unique Integers after K Removals
https://leetcode.com/problems/least-number-of-unique-integers-after-k-removals
Description
Given an array of integers arr
and an integer k
. Find the least number of unique integers after removing exactly k
elements**.**
Example 1:
Example 2:
Constraints:
1 <= arr.length <= 10^5
1 <= arr[i] <= 10^9
0 <= k <= arr.length
ac
Last updated