[LeetCode] 2958. Length of Longest Subarray With at Most K Frequency
You are given an integer array nums and an integer k. The frequency of an element x is the number of times it occurs in an array. An array is called good if the frequency of each element in this array