Subarray Product Less Than K
Medium · Arrays & Strings · about 15 minutes
Asked at Meta, Amazon, Google, Apple, LinkedIn, Confluent.
nums contains only positive integers. Count how many contiguous slices of it have a product that stays strictly below k.