Several-Coding-Patterns-for-Solving-Data-Structures-and-Algorithms-Problems-during-Interviews icon indicating copy to clipboard operation
Several-Coding-Patterns-for-Solving-Data-Structures-and-Algorithms-Problems-during-Interviews copied to clipboard

[Incorrect solution] SliddingWindows -> Subarrays with Product Less than a Target (medium)

Open gsantosbruna opened this issue 2 years ago • 0 comments

The output of the JS implementation gives duplicated solutions.

Input: findSubarrays([2, 5, 3, 10], 30) Output: [ [ 2 ], [ 2, 5 ], [ 2, 5 ], [ 5, 3 ], [ 5, 3 ], [ 10 ] ]

Amazing repo, btw! Thank you very much for sharing this content.

gsantosbruna avatar Oct 04 '23 13:10 gsantosbruna