Given an integer array nums and an integer k, return the number of contiguous subarrays whose product equals k.
Unlock detailed company stats for this questionUpgrade
Subarrays may overlap but must be contiguous. Example: nums = [2, 3, 2, 2], k = 4 gives 1, since only the subarray [2, 2] has product 4.
Community answers
No answers contributed by the community yet.
Related questions
Given an array of integers and an integer k, find the number of continuous subarrays whose sum equals k.Given an integer array and a target, return all contiguous subarrays whose sum equals the target.Given an array of n integers and a number k, find the maximum number of elements whose sum is less than k, and return their sum.Related courses

Course

