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 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
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
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
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
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
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
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
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
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