Available question text
Count the number of non-empty contiguous subarrays of a positive-integer array whose score—defined as (sum of elements) × (subarray length)—is strictly less than k. With n up to 1e5 and values/k large, you need an algorithm substantially faster than brute-force O(n^2).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2302. Count Subarrays With Score Less Than K
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source