Search⌘ K
AI Features

Count Subarrays With Score Less Than K

Count Subarrays With Score Less Than K counts non-empty contiguous subarrays of positive integers whose element sum multiplied by their length is strictly less than the given threshold.

Statement

An array score is defined as the sum of the array elements multiplied by its length. For example, if the array is ...