Available question text
For each index i, compute the integer average of the subarray nums[i-k..i+k] (window size 2k+1) or -1 if the window goes out of bounds. The challenge is to produce the avgs array efficiently (n up to 1e5), typically via prefix sums or a sliding window to get O(n) time.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2090. K Radius Subarray Averages
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source