码迷,mamicode.com
首页 >  
搜索关键字:subarray    ( 846个结果
LeetCode OJ 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],t ...
分类:其他好文   时间:2016-07-06 17:59:20    阅读次数:157
Maximum Subarray | & ||
Maximum Subarray Given an array of integers, find a contiguous subarray which has the largest sum. Notice The subarray should contain at least one num ...
分类:其他好文   时间:2016-07-06 11:54:26    阅读次数:242
LeetCode OJ 209. 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 ...
分类:其他好文   时间:2016-07-04 10:05:10    阅读次数:195
152. Maximum Product Subarray java solutions
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],t ...
分类:编程语言   时间:2016-07-03 21:15:16    阅读次数:176
Maximum Subarray II
Given an array of integers, find two non-overlapping subarrays which have the largest sum. The number in each subarray should be contiguous. Return th ...
分类:其他好文   时间:2016-07-02 17:33:10    阅读次数:137
Maximum Subarray III
Given an array of integers and a number k, find k non-overlapping subarrays which have the largest sum. The number in each subarray should be contiguo ...
分类:其他好文   时间:2016-07-02 17:30:12    阅读次数:162
Subarray Sum
Given an integer array, find a subarray where the sum of numbers is zero. Your code should return the index of the first number and the index of the l ...
分类:其他好文   时间:2016-07-01 08:53:49    阅读次数:119
Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product. Example For example, given the array [2,3 ...
分类:其他好文   时间:2016-07-01 06:45:49    阅读次数:307
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 ...
分类:其他好文   时间:2016-07-01 06:45:20    阅读次数:188
Continuous Subarray Sum
Given an integer array, find a continuous subarray where the sum of numbers is the biggest. Your code should return the index of the first number and ...
分类:其他好文   时间:2016-07-01 06:43:08    阅读次数:186
846条   上一页 1 ... 45 46 47 48 49 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!