码迷,mamicode.com
首页 >  
搜索关键字:subarray    ( 846个结果
Java for LeetCode 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...
分类:编程语言   时间:2015-06-09 19:42:12    阅读次数:127
leetcode[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,1,?5,4], the contiguous subarray [4,?1,2,1] has the...
分类:其他好文   时间:2015-06-08 11:44:36    阅读次数:114
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. ...
分类:其他好文   时间:2015-06-06 16:37:38    阅读次数:354
Java for 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],t...
分类:编程语言   时间:2015-06-05 13:35:21    阅读次数:133
Minimum Size Subarray Sum -- leetcode
题目描述: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
[LeetCode-JAVA] 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 ...
分类:编程语言   时间:2015-06-02 12:50:01    阅读次数:236
[LintCode] Subarray Sum & Subarray Sum II
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
【Maximum Subarray 】cpp
题目: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
209 Minimum Size subarray sum
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
LeetCode: Maximum Product Subarray && Maximum Subarray
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
846条   上一页 1 ... 61 62 63 64 65 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!