Given an integer array arr, you can choose a set of integers and remove all occurrences of these integers from the array.
Return the minimum size of the set such that at least half of the integers of the array are removed.
Constraints:
arr.length
arr.length is even.
arr[i]
Given an integer array arr, you can choose a set of integers and remove all occurrences of these integers from the array.
Return the minimum size of the set such that at least half of the integers of the array are removed.
Constraints:
arr.length
arr.length is even.
arr[i]