码迷,mamicode.com
首页 >  
搜索关键字:subarray    ( 846个结果
2016大连网络赛 Different GCD Subarray Query
Different GCD Subarray Query Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description This is a simple pro ...
分类:其他好文   时间:2016-09-11 09:05:38    阅读次数:177
LintCode刷题笔记-- Maximum Product Subarray
标签: 动态规划 描述: Find the contiguous subarray within an array (containing at least one number) which has the largest product. Find the contiguous subarray ...
分类:其他好文   时间:2016-09-10 01:29:31    阅读次数:148
LeetCode53 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,- ...
分类:其他好文   时间:2016-09-10 00:04:46    阅读次数:159
leetcode-Maximum Product Subarray-152
输入一个数组,求连续子数组中乘积最大的 这个和最大连续子数组很相似,但是由于相加和乘积的差异性所有有差别http://www.cnblogs.com/0summer/p/5822908.html 一个数(正数、零、负数)乘以一个负数会变得更小,所以负数对当前元素来说是负影响,但是这个负数可能对于后面 ...
分类:其他好文   时间:2016-08-31 20:42:21    阅读次数:323
[LintCode] 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-08-31 00:35:49    阅读次数:223
leetcode-Maximum Subarray-53
最大子串和,输入一个数组,求连续的元素和的最大值 ans保存最大值,sum保存包含当前元素的前一个元素的连续子串的和,如果sum<0说明对当前元素来说是负影响,所以sum=0,然后加到当前元素;如果sum>=0说明是正影响,加到当前元素。更新答案。ON ...
分类:其他好文   时间:2016-08-30 19:26:42    阅读次数:124
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-08-30 07:05:37    阅读次数:134
[LintCode] 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-08-26 15:23:04    阅读次数:182
Maximum Subarray
Given an array of integers, find a contiguous subarray which has the largest sum. Notice The subarray should contain at least one number. Example Give ...
分类:其他好文   时间:2016-08-20 01:30:52    阅读次数:115
LintCode Subarray Sum
For this problem we need to learn a new trick that if your start sum up all elements in an array. When you start from a to b to sum up all elements, i ...
分类:其他好文   时间:2016-08-20 01:28:15    阅读次数:135
846条   上一页 1 ... 43 44 45 46 47 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!