Given an integer array nums and an integer k, return the length of the longest contiguous subarray containing at most k distinct elements that appear at least
Constraints:
nums.length
nums[i]
k nums.length
Given an integer array nums and an integer k, return the length of the longest contiguous subarray containing at most k distinct elements that appear at least
Constraints:
nums.length
nums[i]
k nums.length