Subarray Product Less Than K

Given an array of positive integers nums and an integer k, return the number of contiguous subarrays whose product is strictly less than k.

Input format: the first line has n k; the secon...

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: