码迷,mamicode.com
首页 >  
搜索关键字:subarray    ( 846个结果
523. Continuous Subarray Sum
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
LeetCode 643. Maximum Average Subarray I (最大平均值子数组之一)
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
697. Degree of an Array
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
560. Subarray Sum Equals K
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
LeetCode 581. Shortest Unsorted Continuous Subarray (最短无序连续子数组)
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
643. Maximum Average Subarray I
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
53. Maximum Subarray
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
maxSubArray
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
lintcode617- Maximum Average Subarray- medium
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
LeetCode 560. Subarray Sum Equals K (子数组之和等于K)
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
846条   上一页 1 ... 31 32 33 34 35 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!