You are given an integer array nums and an integer target.
An element is considered the majority element of a subarray of length
Return the total number of contiguous non empty subarrays of nums in which target is the majority element.
Constraints:
nums.length
nums[i]
target
You are given an integer array nums and an integer target.
An element is considered the majority element of a subarray of length
Return the total number of contiguous non empty subarrays of nums in which target is the majority element.
Constraints:
nums.length
nums[i]
target