Given an integer array nums and an integer k, return the total number of good subarrays of nums.
A subarray is defined as good if there are at least nums[i] is equal to nums[j].
A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i], k
Given an integer array nums and an integer k, return the total number of good subarrays of nums.
A subarray is defined as good if there are at least nums[i] is equal to nums[j].
A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i], k