Running Average

Medium

Given a list of numbers and a window size k, compute the running average over each window of k consecutive elements. Print the results as a list of integers (use integer division).

Given variables
nums: a list of integers
k: the window size
2 test cases
Hit Test to see output...
Loading WASM...Docs

You are not logged in.