Dsa
Sliding Window
Easy
Average of Subarrays of Fixed Size
Given an array of integers and an integer k, return an array containing the average of each contiguous subarray of size k.
Key concepts
sliding_windowaveragesubarray
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now