You are given an integer array nums and an integer k.
An equal subarray is defined as a contiguous sequence of elements within an array where every element is identical.
You may delete at most k elements from nums. Return the length of the longest possible equal subarray after performing these deletions.
Constraints:
nums.length
nums[i] nums.length
k nums.length
You are given an integer array nums and an integer k.
An equal subarray is defined as a contiguous sequence of elements within an array where every element is identical.
You may delete at most k elements from nums. Return the length of the longest possible equal subarray after performing these deletions.
Constraints:
nums.length
nums[i] nums.length
k nums.length