Given an array of length n
and a size k
compute the sum of the average value of all subarrays size k
.
This is a companion discussion topic for the original entry at https://algo.monster/problems/moving_average/
Given an array of length n
and a size k
compute the sum of the average value of all subarrays size k
.