码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
POJ 3693 Maximum repetition substring (寻找重复次数最多的连续子串)
Maximum repetition substring Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9083 Accepted: 2782 Description The repetition number of a str ...
分类:其他好文   时间:2016-08-17 21:21:28    阅读次数:229
leetcode 318: Maximum Product of Word Lengths
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:其他好文   时间:2016-08-16 21:47:00    阅读次数:133
*Maximum Product of Word Lengths
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:其他好文   时间:2016-08-16 10:28:50    阅读次数:152
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 ...
分类:其他好文   时间:2016-08-15 18:59:55    阅读次数:146
[lintcode] Binary Tree Maximum Path Sum II
Given a binary tree, find the maximum path sum from root. The path may end at any node in the tree and contain at least one node in it. 给一棵二叉树,找出从根节点出 ...
分类:其他好文   时间:2016-08-15 17:13:54    阅读次数:161
[LeetCode] NO.104 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 farth ...
分类:其他好文   时间:2016-08-14 14:22:35    阅读次数:92
动态规划 - 最长上升子序列问题
原文 http://xuanwo.org/2015/07/31/dp-lis/ 主题 动态规划 原文 http://xuanwo.org/2015/07/31/dp-lis/ 主题 动态规划 介绍 最长上升子序列问题,也就是 Longest increasing subsequence ,缩写为LI ...
分类:其他好文   时间:2016-08-14 07:24:45    阅读次数:135
binary-tree-maximum-path-sum-LeetCode
binary-tree-maximum-path-sum binary-tree-maximum-path-sum 题目描述 Given a binary tree, find the maximum path sum. The path may start and end at any node ...
分类:其他好文   时间:2016-08-14 07:17:05    阅读次数:139
leetcode 104. 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 l ...
分类:其他好文   时间:2016-08-13 19:34:06    阅读次数:98
HDU 1159 Common Subsequence
原题链接:点击此处 解题思路: 详情可见,算法竞赛入门经典(刘汝佳的那本紫书)第二版275页。 dp(i,j)表示的是A1,A2,A3....,Ai和B1,B2,B3...Bj的最长公共子序列(LCS)的长度。 当A[i]=B[i]时,dp(i,j)=d(i-1,j-1)+1; 否则dp(i,j)= ...
分类:其他好文   时间:2016-08-13 12:35:03    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!