码迷,mamicode.com
首页 >  
搜索关键字:longest    ( 2697个结果
【Leet Code】Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters  Total Accepted: 20506 Total Submissions: 92223My Submissions Given a string, find the length of the longest substring without repeating char...
分类:其他好文   时间:2014-08-23 21:42:21    阅读次数:359
Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2014-08-23 21:35:21    阅读次数:264
UVa 10285 Longest Run on a Snowboard(DP 二维最长递减子序列)
题意  输入一个城市的滑雪地图  你可以从高的地方滑到伤下左右低的地方  求这个城市的最长滑雪线路长度   即在一个矩阵中找出最长递减连续序列 令d[i][j]为以格子map(i,j)为起点的最长序列   则有状态转移方程d[i][j]=max{d[a][b]}+1  a,b为与i,j相邻且值比i,j小的所有点 #include #include #include using na...
分类:其他好文   时间:2014-08-23 11:25:20    阅读次数:245
Hdu 1403(后缀数组)
题目链接Longest Common SubstringTime Limit: 8000/4000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4077Accepted Submissio...
分类:其他好文   时间:2014-08-22 12:15:16    阅读次数:330
UVAlive 6763 Modified LCS
LCS stands for longest common subsequence, and it is a well known problem. A sequence in thisproblem means a list of integers, and a sequence X is con...
分类:其他好文   时间:2014-08-22 00:14:45    阅读次数:303
UVa 10285 - Longest Run on a Snowboard
题目:给你一个二维的 分析: 说明:...
分类:其他好文   时间:2014-08-21 13:25:54    阅读次数:287
编程之美——longest incremental sequence(LIS)
解法一:通过遍历得到(0:i)的LIS,时间复杂度O(N^2);具体思路于代码,如下: 1 #include 2 #include 3 using namespace std; 4 5 int longSub(int arr[],int n); 6 7 int main() 8 { 9 ...
分类:其他好文   时间:2014-08-20 15:44:12    阅读次数:147
【Leetcode】Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest...
分类:其他好文   时间:2014-08-20 14:01:12    阅读次数:184
poj之最长递增子序列
题目:POJ 2533    Longest Ordered Subsequence Description A numeric sequence of ai is ordered if a1 a2 aN. Let the subsequence of the given numeric sequence (a1, a2, ..., aN) be any sequence (ai1...
分类:其他好文   时间:2014-08-19 16:37:44    阅读次数:218
LightOJ 1110 An Easy LCS LCS路径输出
点击打开链接题目链接 1110 - An Easy LCS PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB LCS means 'Longest Common Subsequence' that means ...
分类:其他好文   时间:2014-08-19 12:59:35    阅读次数:604
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!