码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
Maximum Product Subarray
leetcode 新增题目Maximum Product Subarray...
分类:其他好文   时间:2014-09-24 17:56:57    阅读次数:148
递归的应用--求二叉树最大深度和最小深度
【求最大深度】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 leaf node. 这里说的最大深度是指最深叶子节点到根节点的路径长度 ...
分类:其他好文   时间:2014-09-24 16:09:37    阅读次数:200
1007. Maximum Subsequence Sum (25)——PAT (Advanced Level) Practise
题目信息: 1007. Maximum Subsequence Sum (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given a sequence of K i...
分类:其他好文   时间:2014-09-24 11:12:56    阅读次数:364
最长上升(不下降)子序列(详细,转)
LIS(Longest Increasing Subsequence)最长上升(不下降)子序列,有两种算法复杂度为O(n*logn)和O(n^2)。在上述算法中,若使用朴素的顺序查找在 D1..Dlen查找,由于共有O(n)个元素需要计算,每次计算时的复杂度是O(n),则整个算法的时间复杂度为O(n...
分类:其他好文   时间:2014-09-24 08:14:46    阅读次数:218
[LeetCode]Jump Game II
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. Your goal i...
分类:其他好文   时间:2014-09-23 20:15:26    阅读次数:142
UIPanGestureRecognizer
Configuring the Gesture Recognizer@property(nonatomic) NSUInteger maximumNumberOfTouches//The maximum number of fingers that can be touching the view ...
分类:其他好文   时间:2014-09-22 19:04:23    阅读次数:241
动态规划解最长公共子序列问题
http://blog.csdn.net/yysdsyl/article/details/4226630 1 public class Main { 2 3 /** 4 * longest common subsequence 5 * @param args 6 ...
分类:其他好文   时间:2014-09-22 18:07:52    阅读次数:203
Maximum Depth of Binary Tree
[leetcode]Given a binary tree, find its maximum depth....
分类:其他好文   时间:2014-09-22 13:24:42    阅读次数:114
Leetcode_num5_Best Time to Buy and Sell Stock II
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i...
分类:其他好文   时间:2014-09-21 03:10:29    阅读次数:265
String subString方法
package 字符串2;public class TestString {public static void main(String[] args) { String str = "Returns a new character sequence that is a subsequence of...
分类:其他好文   时间:2014-09-20 17:35:59    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!