LCS(Longest Common Subsequence) 就是求两个字符串最长公共子串的问题。引入: LCS(Longest Common Subsequence) 就是求两个字符串最长公共子串的问题。 比如: String str1 = new String("adbccadebbca"); ...
分类:
其他好文 时间:
2016-09-08 19:54:15
阅读次数:
149
Longest Ordered Subsequence Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 47465 Accepted: 21120 Description A numeric sequence of ai is o ...
分类:
其他好文 时间:
2016-09-08 18:27:41
阅读次数:
123
Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than ...
分类:
其他好文 时间:
2016-09-08 12:43:19
阅读次数:
124
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-09-08 12:42:25
阅读次数:
113
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of Sis 1000, and there exists one unique longest ...
分类:
其他好文 时间:
2016-09-07 22:55:39
阅读次数:
165
尽量抽空刷LeetCode,持续更新 刷题记录在github上面,https://github.com/Zering/LeetCode 2016-09-05 300. Longest Increasing Subsequence 问题:https://leetcode.com/problems/lo ...
分类:
其他好文 时间:
2016-09-05 12:20:18
阅读次数:
119
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-09-04 23:58:10
阅读次数:
267