Leetcode 3005. Count Elements With Maximum Frequency
Count the occurrences of each value in the array, find the maximum frequency, and return the total number of elements whose values occur with that maximum frequency (i.e., sum counts of all values that achieve the max).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Your account is free and you can post anonymously if you choose.