码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
POJ - 2533 Longest Ordered Subsequence(最长上升子序列)
d.最长上升子序列 s.注意是严格递增 c.O(nlogn) c2.O(n^2)
分类:其他好文   时间:2016-03-17 19:09:40    阅读次数:114
POJ 1458 Common Subsequence 最长公共子序列 LCS
LCS
分类:其他好文   时间:2016-03-17 12:38:01    阅读次数:143
239. Sliding Window Maximum
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num
分类:Windows程序   时间:2016-03-16 22:41:18    阅读次数:306
Leetcode 53 Maximum Subarray
分类:其他好文   时间:2016-03-16 22:36:17    阅读次数:169
leetCode 53.Maximum Subarray (子数组的最大和) 解题思路方法
If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle. 思路:这题在刚開始想用双指针解,可是
分类:编程语言   时间:2016-03-16 09:34:27    阅读次数:137
POJ-1003-hangover
Description How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We
分类:其他好文   时间:2016-03-15 20:53:47    阅读次数:305
lintcode-medium-Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. Given the below binary tree: return 6.   一个二叉树的最大量
分类:其他好文   时间:2016-03-15 07:28:56    阅读次数:171
LeetCode题解 #5 Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes
分类:其他好文   时间:2016-03-14 18:34:09    阅读次数:207
lintcode-medium-Backpack II
Given n items with size Ai and value Vi, and a backpack with size m. What's the maximum value can you put into the backpack? Given 4 items with size [
分类:其他好文   时间:2016-03-14 15:18:34    阅读次数:174
LintCode: Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
分类:其他好文   时间:2016-03-13 14:29:24    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!