713. Subarray Product Less Than K
https://leetcode.com/problems/subarray-product-less-than-k/
Problem
Your are given an array of positive integers nums
.
Count and print the number of (contiguous) subarrays where the product of all the elements in the subarray is less than k
.
Example 1:
Note:
0 < nums.length <= 50000
.
0 < nums[i] < 1000
.
0 <= k < 10^6
.
Solution
#twopointer
#important
Last updated
Was this helpful?