Given an integer array nums and two positive integers m and k.
A subarray is considered almost unique if it contains at least m distinct elements.
Return the maximum sum of an almost unique subarray of length k. If no such subarray exists, return
Constraints:
nums.length
m k nums.length
nums[i]
Given an integer array nums and two positive integers m and k.
A subarray is considered almost unique if it contains at least m distinct elements.
Return the maximum sum of an almost unique subarray of length k. If no such subarray exists, return
Constraints:
nums.length
m k nums.length
nums[i]