Given an integer array nums and two integers left and right, return the number of contiguous non empty subarrays where the maximum element is greater than or equal to left and less than or equal to right.
Constraints:
nums.length
nums[i]
left right
Given an integer array nums and two integers left and right, return the number of contiguous non empty subarrays where the maximum element is greater than or equal to left and less than or equal to right.
Constraints:
nums.length
nums[i]
left right