考虑一个N个整数的数组.找到最长的连续子阵列,使其元素的平均值大于(或等于)给定数量k.
显而易见的答案是O(n ^ 2)复杂度.我们可以做得更好吗?
algorithm array-algorithms
algorithm ×1
array-algorithms ×1