0795. Number of Subarrays with Bounded Maximum
Description
**Input:** nums = [2,1,4,3], left = 2, right = 3
**Output:** 3
**Explanation:** There are three subarrays that meet the requirements: [2], [2, 1], [3].**Input:** nums = [2,9,2,5,6], left = 2, right = 8
**Output:** 7ac
Last updated