Leetcode之Maximum Average Subarray I

问题描述: Given an array consisting of n integers, find the contiguous subarray of given lengthk that has the maximum average value. And you need to output the maximum average value. 示例: Input: [1,12,-5,-
相关文章
相关标签/搜索