Count Subarrays With Product Equal to K

Modify the previous problem: given an array of positive integers nums and a positive integer k, return the number of contiguous subarrays whose product is exactly equal to k.

**Input format...

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: