You are given an integer array nums and a positive integer k.
The frequency score of a subarray is defined as the sum of
Return the maximum frequency score achievable among all subarrays of length k. Since the resulting value may be large, return it modulo
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
k nums.length
nums[i]
You are given an integer array nums and a positive integer k.
The frequency score of a subarray is defined as the sum of
Return the maximum frequency score achievable among all subarrays of length k. Since the resulting value may be large, return it modulo
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
k nums.length
nums[i]