Maximum Frequency Count

Given an integer array nums, return the greatest number of times any one value occurs. If several values tie, return their shared frequency; do not return a…

Given an integer array `nums`, return the greatest number of times any one value occurs. If several values tie, return their shared frequency; do not return a value from the array.

- `1 <= nums.length <= 100` - `-10^9 <= nums[i] <= 10^9` - The interactive visualizer accepts at most 12 values; longer valid arrays are execution-only.

Example 1: input nums = [4,4,2,7,2]; output 2. Both 4 and 2 occur twice, so the maximum frequency is 2.

Example 2: input nums = [5,5,5]; output 3. The value 5 occurs three times.

Category: Arrays & Hashing. Topic: arrays. Difficulty: Easy. Patterns: hashing.