码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
[Leetcode] Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-10-16 15:45:42    阅读次数:189
[Leetcode] Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-10-16 15:26:02    阅读次数:169
leetcode - Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine i...
分类:其他好文   时间:2014-10-16 14:55:02    阅读次数:297
[Leetcode] Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-10-16 06:33:22    阅读次数:238
leetcode:Maximum Depth of Binary Tree
# Definition for a binary tree node# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right ...
分类:其他好文   时间:2014-10-16 03:27:21    阅读次数:162
1014------算法笔记----------Maximum Product Subarray 最大乘积子数组
1.题目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]...
分类:编程语言   时间:2014-10-15 19:29:41    阅读次数:228
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...
分类:其他好文   时间:2014-10-15 12:52:20    阅读次数:160
POJ3061 Subsequence(二分前缀和法+尺取法)
二分+前缀和法 满足条件的子序列长度在(0,n)之间,sum[x+i]-sum[i]为从从第i个元素开始序列长度为x的元素的和。前缀和可在O(n)的时间内统计 sum[i]的值。再用二分找出满足条件的最小的子序列长度。 #include #include #include #include #include #include #include #include #include #inclu...
分类:其他好文   时间:2014-10-15 00:09:19    阅读次数:251
最大子序列积
最大子序列积问题?? leetcode Find the contiguous subarray within an array (containing at least one number) 线性时间算法...
分类:其他好文   时间:2014-10-13 23:44:27    阅读次数:254
meta viewport
如实例: width:viewport 的宽度,可以指定为一个像素值,如:600,或者为特殊的值,如:device-width(设备的宽度)。height:viewport的高度。initial-scale:初始缩放比例,即当浏览器第一次加载页面时的缩放比例。maximum-scale:允许浏览者缩...
分类:Web程序   时间:2014-10-13 18:17:21    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!