Print All Subarrays With Product Less Than K

Given an array of positive integers nums and an integer k, print every contiguous subarray whose product is strictly less than k. Order them by right endpoint ascending, and for the same right e...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: