|
12 | 12 | * A subarray is a contiguous part of an array.
|
13 | 13 | *
|
14 | 14 | * Example 1:
|
15 |
| - * Input: nums = [1,3,5,2,7,5], minK = 1, maxK = 5 |
16 |
| - * Output: 2 |
17 |
| - * Explanation: The fixed-bound subarrays are [1,3,5] and [1,3,5,2]. |
| 15 | + * Input: nums = [1,3,5,2,7,5], minK = 1, maxK = 5 |
| 16 | + * Output: 2 |
| 17 | + * Explanation: The fixed-bound subarrays are [1,3,5] and [1,3,5,2]. |
18 | 18 | *
|
19 | 19 | * Example 2:
|
20 |
| - * Input: nums = [1,1,1,1], minK = 1, maxK = 1 |
21 |
| - * Output: 10 |
22 |
| - * Explanation: Every subarray of nums is a fixed-bound subarray. There are 10 possible subarrays. |
| 20 | + * Input: nums = [1,1,1,1], minK = 1, maxK = 1 |
| 21 | + * Output: 10 |
| 22 | + * Explanation: Every subarray of nums is a fixed-bound subarray. There are 10 possible subarrays. |
23 | 23 | *
|
24 | 24 | * Constraints:
|
25 |
| - * • 2 <= nums.length <= 105 |
26 |
| - * • 1 <= nums[i], minK, maxK <= 106 |
| 25 | + * • 2 <= nums.length <= 10^5 |
| 26 | + * • 1 <= nums[i], minK, maxK <= 10^6 |
27 | 27 | *
|
28 | 28 | * Hint 1
|
29 | 29 | * Can you solve the problem
|
|
0 commit comments