product is of two numbers. How is a single element array like [2] can be considered an answer?
are we assuming 2*1 < 30?
Course: Grokking the Coding Interview: Patterns for Coding Questions - Learn Interactively
Lesson: Subarrays with Product Less than a Target (medium) - Grokking the Coding Interview: Patterns for Coding Questions