Find the average of each sliding window of size k.
Unlock detailed company stats for this questionUpgrade
Given an input array of n elements and a window size k, find the average of each sliding window. Example: input [1,2,3,4,5], k = 3 gives [2.0, 3.0, 4.0]. Expected O(n) time and O(1) space; handle validation such as k <= 0.
Community answers
No answers contributed by the community yet.


