Problem 713 · Medium

Subarray Product Less Than K

Count contiguous slices whose product stays below a limit. The visual grows a window and counts every slice ending at the right edge that fits.

Open the interactive visualisation