You are given an integer array nums and an integer k.
A subarray is called good if the frequency of each element in that subarray is at most k.
Return the length of the longest good subarray of nums.
A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]
k nums.length
You are given an integer array nums and an integer k.
A subarray is called good if the frequency of each element in that subarray is at most k.
Return the length of the longest good subarray of nums.
A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]
k nums.length