← 返回 ibm 的题目列表Find Non-Repeated Elements
类型:online_judge
ibm
Given an integer array, count the number of elements that occur the least number of times.
Input
numbers: an array of integers.
Output
Return the number of elements that occur the least number of times.
Example
Input: numbers = [3, 2, 2, 4, 4, 4] Output: 2
Explanation: There are two elements (3 and 2) that occur exactly once in the array.
Example
Input
[3, 2, 2, 4, 4, 4]