Given an array of positive integers nums and a positive integer k.
Return the minimum length of a contiguous subarray of nums such that the sum of all unique elements in that subarray is at least k. If no such subarray exists, return
Constraints:
nums.length
nums[i]
k
Given an array of positive integers nums and a positive integer k.
Return the minimum length of a contiguous subarray of nums such that the sum of all unique elements in that subarray is at least k. If no such subarray exists, return
Constraints:
nums.length
nums[i]
k