Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that ...
分类:
其他好文 时间:
2017-10-20 11:52:11
阅读次数:
139
Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the ...
分类:
编程语言 时间:
2017-10-20 10:19:51
阅读次数:
233
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t ...
分类:
其他好文 时间:
2017-10-19 15:02:32
阅读次数:
164
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: 题目含义:求和 ...
分类:
其他好文 时间:
2017-10-16 21:55:23
阅读次数:
106
Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be ...
分类:
编程语言 时间:
2017-10-15 21:30:34
阅读次数:
213
Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the ...
分类:
其他好文 时间:
2017-10-15 14:19:13
阅读次数:
139
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2, ...
分类:
其他好文 时间:
2017-10-14 21:03:21
阅读次数:
170
Description: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2 ...
分类:
其他好文 时间:
2017-10-13 23:41:59
阅读次数:
243
Given an array with positive and negative numbers, find the maximum average subarray which length should be greater or equal to given length k. Notice ...
分类:
其他好文 时间:
2017-10-08 10:07:04
阅读次数:
161
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: 题目标签:Ar ...
分类:
编程语言 时间:
2017-10-05 00:51:33
阅读次数:
416