码迷,mamicode.com
首页 >  
搜索关键字:subarray    ( 846个结果
[LeetCode] Minimum Size Subarray Sum
Minimum Size Subarray Sum   Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead. ...
分类:其他好文   时间:2015-05-12 15:49:30    阅读次数:89
leetcode-Minimum Size Subarray Sum
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead. For example, given the array [2,3...
分类:其他好文   时间:2015-05-12 11:32:17    阅读次数:110
209. Minimum Size Subarray Sum
Given an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If there isn't one, return 0 i...
分类:其他好文   时间:2015-05-12 06:57:10    阅读次数:116
算法导论4--求最大和数组
1 #include 2 #include 3 #include 4 using namespace std; 5 6 struct subArray{ 7 int low; 8 int high; 9 float sum; 10 }; 11 //分治策...
分类:编程语言   时间:2015-05-10 22:21:30    阅读次数:243
152-Maximum Product Subarray
【题目】Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4]...
分类:其他好文   时间:2015-05-05 21:40:48    阅读次数:137
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,...
分类:其他好文   时间:2015-04-28 11:34:29    阅读次数:102
Algorithm about SubArrays & SubStrings
No.1Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.e.g.[?2,1,?3,4,?1,2,1,?5,4...
分类:其他好文   时间:2015-04-26 09:09:23    阅读次数:111
【算法设计-分治】最大子数组问题
先写上代码: #include using namespace std; typedef struct maximum { int left; int right; int sum; }Maximum; Maximum* FIND_MAX_CROOSING_SUBARRAY(int *A,int low,int mid,int high); Maximum* FIND_MAXI...
分类:编程语言   时间:2015-04-24 14:19:44    阅读次数:201
Maximum Subarray——LeetCode
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,1,...
分类:其他好文   时间:2015-04-23 12:51:25    阅读次数:102
LeetCode-152 Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2015-04-21 23:59:29    阅读次数:343
846条   上一页 1 ... 64 65 66 67 68 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!