码迷,mamicode.com
首页 >  
搜索关键字:longest ordered subs    ( 3212个结果
leetcode problem (2-4)
Problem 2 ---Add Two Numbers简单的模拟题。Problem 3 ---Longest Substring Without Repeating Characters题意: 给定一个字符串序列,找出最长无重复的子序列。如"abcabcbb"的最长不重复子序列为"abc"思路: ...
分类:其他好文   时间:2015-04-10 19:28:51    阅读次数:100
一天三题LeetCode(C++&JAVA)-4~6
4.Median of Two Sorted Arrays 5.Longest Palindromic Substring 6.ZigZag Conversion...
分类:编程语言   时间:2015-04-10 11:36:28    阅读次数:149
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 ...
分类:其他好文   时间:2015-04-10 07:00:16    阅读次数:120
Binary Tree Right Side View
题目:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exa...
分类:其他好文   时间:2015-04-10 06:32:46    阅读次数:104
[LeetCode]Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tre...
分类:其他好文   时间:2015-04-09 22:02:36    阅读次数:117
[JAVA]LeetCode199 Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.For example: Given the following binary tree, 1...
分类:编程语言   时间:2015-04-09 22:02:12    阅读次数:145
hdu1403---Longest Common Substring(后缀数组求2个字符串的最长公共子串)
Problem Description Given two strings, you have to tell the length of the Longest Common Substring of them.For example: str1 = banana str2 = cianaicSo the Longest Common Substring is “ana”, and the...
分类:编程语言   时间:2015-04-09 15:33:59    阅读次数:225
LeetCode3 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...
分类:其他好文   时间:2015-04-09 15:18:13    阅读次数:115
OJ练习7——T14 Longest Common Prefix
得到一个string序列的最长公共前缀。【思路】先求得最小string的长度,使得比较次数尽可能少。对于要返回的prefix的每一位,从第一个string中取一个字符,拿来和其他string同样位置的字符比较;如果不相同,则返回当前的prefix,否则添加到prefix后。【注意】读取第i个stri...
分类:其他好文   时间:2015-04-08 10:50:46    阅读次数:81
一天三题LeetCode(C++&JAVA)-1~3
1.Two Num 2.Add Two Numbers 3.Longest Substring Without Repeating Characters...
分类:编程语言   时间:2015-04-08 09:14:09    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!