Maximum Average Subarray I
Try to solve the Maximum Average Subarray I problem.
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:
k
nums.length
nums[i]
Examples
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.