You are given an array of positive integers nums.
A subarray is defined as complete if the number of distinct elements present in the subarray equals the total number of distinct elements in the entire array nums.
Return the total count of complete subarrays in nums.
Note: A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]
You are given an array of positive integers nums.
A subarray is defined as complete if the number of distinct elements present in the subarray equals the total number of distinct elements in the entire array nums.
Return the total count of complete subarrays in nums.
Note: A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]