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...
分类:
编程语言 时间:
2015-06-09 19:42:12
阅读次数:
127
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,?5,4],
the contiguous subarray [4,?1,2,1] has the...
分类:
其他好文 时间:
2015-06-08 11:44:36
阅读次数:
114
一: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-06-06 16:37:38
阅读次数:
354
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...
分类:
编程语言 时间:
2015-06-05 13:35:21
阅读次数:
133
题目描述: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,1...
分类:
其他好文 时间:
2015-06-02 21:56:21
阅读次数:
115
题目: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 ...
分类:
编程语言 时间:
2015-06-02 12:50:01
阅读次数:
236
Subarray SumGiven an integer array, find a subarray where the sum of numbers iszero. Your code should return the index of the first number and the ind...
分类:
其他好文 时间:
2015-06-01 13:00:46
阅读次数:
92
题目: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...
分类:
其他好文 时间:
2015-05-30 18:13:22
阅读次数:
130
public class Solution { public int minSubArrayLen(int s, int[] nums) { if (nums == null || nums.length == 0) { return 0; }...
分类:
其他好文 时间:
2015-05-30 09:16:27
阅读次数:
108
Maximum Product SubarrayTitle:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example,...
分类:
其他好文 时间:
2015-05-29 13:37:55
阅读次数:
98