Problem 1343 · Medium

Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold

Count length-k subarrays whose average is at least the threshold.

Open the interactive visualisation