HELP!!! (Subarray product equals k (can be zero) )

The problem was to count the number of subarrays with given product (the product can be 0, however NO NEGATIVE products guranteed) , I have tried the sliding window technique and other solutions, but to no avail. Can anyone help me with this?

Comments (0)