Are there any negative number..
if you are doing product there is chance that number is negative .. as same time if you are doing comparison like greater or less then it wonβt make sense check https://leetcode.com/problems/subarray-product-less-than-k/description/ they clearly say positive number in the constraints