码迷,mamicode.com
首页 >  
搜索关键字:longest ordered subs    ( 3212个结果
Longest Substring Without Repeating Characters
int longestSubString(char* arr, int len){ if (arr == NULL || len <= 0) return 0; int i = 0, j = 0; int maxLen = 0; bool exist[256] ...
分类:其他好文   时间:2014-12-17 22:34:06    阅读次数:177
【leetcode】 Longest Valid Parentheses (hard)★
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2014-12-17 17:55:07    阅读次数:160
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 l...
分类:其他好文   时间:2014-12-17 16:10:40    阅读次数:167
HDU 5141 LIS again
Problem Description A numeric sequence of ai is ordered if a1a2…aN. Let the subsequence of the given numeric sequence (a1,a2,…,aN) be any sequence (ai1,ai2,…,aiK), where 1≤i1i2…iK≤N. For ex...
分类:其他好文   时间:2014-12-16 22:40:59    阅读次数:304
Maximum Depth of Binary Tree
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41964475 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-12-16 21:07:51    阅读次数:197
zepto - scrollLeft
The longest word in the english dictionary is: pneumonoultramicroscopicsilicovolcanoconiosis.把滚动条的水平位置设置为 100px$("button").click(function(){ ...
分类:其他好文   时间:2014-12-16 18:55:22    阅读次数:683
[译]最长回文子串(Longest Palindromic Substring) Part II
问题:给定字符串S,求S中的最长回文子串。 本篇将讨论一个O(N)时间O(N)空间的算法,即著名的Manacher算法,并详细说明其时间复杂度为何是O(N)。
分类:其他好文   时间:2014-12-15 23:23:40    阅读次数:356
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 leaf node. /** * Definition for binary tree ...
分类:其他好文   时间:2014-12-15 21:52:22    阅读次数:124
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. #include #include #include char *longestCommonPrefix(char *strs[],int n) { int i,j,k; char *res=(...
分类:其他好文   时间:2014-12-15 20:24:22    阅读次数:174
LeetCode Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-12-15 00:00:53    阅读次数:329
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!