Compute the mean of every contiguous subarray of a given window size.
Constraints
Example
>>> rolling_window_mean([1, 2, 3, 4], 2) [1.5, 2.5, 3.5] >>> rolling_window_mean([1, 1, 1], 3) [1.0] >>> rolling_window_mean([5], 1) [5.0]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints