Given an integer array nums and a positive integer k, return the total number of subarrays where the maximum element of nums appears at least k times.
Constraints:
nums.length
nums[i]
k
Given an integer array nums and a positive integer k, return the total number of subarrays where the maximum element of nums appears at least k times.
Constraints:
nums.length
nums[i]
k