Highest Average Block
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
Given a list of numbers and a block length k, find the contiguous block of exactly k numbers with the highest average. Explain how to avoid adding up every block from scratch.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.