July 16, 2015Problem statement:Longest Substring Without Repeating CharactersRead the blog:http://blog.csdn.net/fightforyourdream/article/details/1786...
分类:
其他好文 时间:
2015-07-30 14:52:05
阅读次数:
109
Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of the maximum positive product involving consecutive te...
分类:
其他好文 时间:
2015-07-30 10:59:44
阅读次数:
146
Thelongest common subsequence(LCS)problemis the problem of finding the longestsubsequencecommon to all sequences in a set of sequences (often just two...
分类:
其他好文 时间:
2015-07-30 07:10:57
阅读次数:
120
题意:给定一串括号,求最长的规则('(())'或‘(()())’)的字串及最长字串的个数;思路:使用栈保存左括号,与最近的右括号匹配,使用递推推出每个位置最长字串长度;#include#include#include#include#includeusing namespace std;stack ...
分类:
其他好文 时间:
2015-07-29 21:05:20
阅读次数:
91
题意: Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of themaximum positive product involving consecutive...
分类:
其他好文 时间:
2015-07-29 20:58:40
阅读次数:
129
题目:
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 consecutive elements sequence is...
分类:
编程语言 时间:
2015-07-29 19:30:05
阅读次数:
91
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 ...
分类:
其他好文 时间:
2015-07-29 15:57:00
阅读次数:
131
Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of themaximum positive product involving consecutive ter...
分类:
其他好文 时间:
2015-07-28 22:48:52
阅读次数:
113
Problem Definition: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...
分类:
其他好文 时间:
2015-07-28 17:22:12
阅读次数:
111
LeetCode 3_Longest Substring Without Repeating Characters
题目描述:
Given a string, find the length of the longest substring
without repeating characters. For example, the longest substring without re...
分类:
其他好文 时间:
2015-07-27 23:10:47
阅读次数:
106