โ† Bloomberg questions

Average of m groups in O(n)

Filed under Bloomberg

The question

Given an array and integer m, find the average of every contiguous group of size m in O(n) time.

No write-up yet. Related questions below have one.

Related Bloomberg questions

Collected from public candidate posts and coding forums. Updated Nov 2026.