Search⌘ K
AI Features

Maximum Average Subarray I

Explore how to apply the sliding window method to find the maximum average of a contiguous subarray of fixed length. Understand problem constraints and practice implementing the solution effectively in a coding environment.

Statement

Given an array of integers nums, and an integer k, return the maximum average of a contiguous subarray of length k.

Constraints:

  • 11 \leqk ...