Given an integer array nums and an integer k, return an array ans of size nums.length ans[i] is the number of distinct integers present in the subarray nums[i \dots i + k - 1].
Constraints:
k nums.length
nums[i]
Given an integer array nums and an integer k, return an array ans of size nums.length ans[i] is the number of distinct integers present in the subarray nums[i \dots i + k - 1].
Constraints:
k nums.length
nums[i]