Solution: Maximum Average Subarray I
Let’s solve the Maximum Average Subarray I using the Sliding Window pattern.
We'll cover the following...
Statement
Given an array of integers nums
, and an integer k
, return the maximum average of a contiguous subarray of length k
.
Constraints:
...