码迷,mamicode.com
首页 >  
搜索关键字:subarray    ( 846个结果
[LintCode] Subarray Sum II
Given an integer array, find a subarray where the sum of numbers is in a given interval. Your code should return the number of possible answers. (The ...
分类:其他好文   时间:2017-07-19 01:14:27    阅读次数:233
643. Maximum Average Subarray I 最大子阵列平均数
Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the... ...
分类:其他好文   时间:2017-07-16 19:27:17    阅读次数:176
[leetcode-644-Maximum Average Subarray II]
Given an array consisting of n integers, find the contiguous subarray whose length is greater than or equal to k that has the maximum average value. A ...
分类:其他好文   时间:2017-07-16 14:16:39    阅读次数:283
[LeetCode] Maximum Average Subarray I
Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the ...
分类:其他好文   时间:2017-07-16 14:15:52    阅读次数:175
[leetcode-643-Maximum Average Subarray I]
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ? s. If there isn't ...
分类:其他好文   时间:2017-07-16 13:40:37    阅读次数:165
[leetcode-525-Contiguous Array]
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Example 2: 思路: 将0改为-1,将原题目改成求最大连续区间,区间 ...
分类:其他好文   时间:2017-07-16 00:03:16    阅读次数:150
209. Minimum Size Subarray Sum
https://leetcode.com/problems/minimum-size-subarray-sum/#/description Given an array of n positive integers and a positive integer s, find the minimal ...
分类:其他好文   时间:2017-07-10 23:48:58    阅读次数:186
LeetCode-Maximum Subarray[dp]
Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array ...
分类:其他好文   时间:2017-07-09 17:17:26    阅读次数:119
leetcode 152. Maximum Product Subarray
leetcode 152. Maximum Product Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest product. Fo ...
分类:其他好文   时间:2017-07-06 16:49:23    阅读次数:91
209. Minimum Size Subarray Sum
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:其他好文   时间:2017-07-06 10:03:34    阅读次数:137
846条   上一页 1 ... 35 36 37 38 39 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!