Search⌘ K
AI Features

Count Subarrays With Score Less Than K

Count Subarrays With Score Less Than K asks you to count non-empty contiguous subarrays of positive integers whose element sum multiplied by subarray length is strictly below k.

Statement

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