643. Maximum Average Subarray I
You are given an integer array
numsconsisting ofnelements, and an integerk.Find a contiguous subarray whose length is equal to
kthat has the maximum average value and return this value. Any answer with a calculation error less than10-5will be accepted.
1 | class Solution { |