Substring
时间限制:1000 ms | 内存限制:65535 KB
描述
You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of i...
分类:
其他好文 时间:
2015-03-18 14:11:43
阅读次数:
118
Problem Description
Given n integers.
You have two operations:
U A B: replace the Ath number by B. (index counting from 0)
Q A B: output the length of the longest consecutive increasing subseque...
分类:
其他好文 时间:
2015-03-17 23:39:04
阅读次数:
161
题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2015-03-17 18:04:49
阅读次数:
134
problem:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length...
分类:
编程语言 时间:
2015-03-16 16:25:54
阅读次数:
155
Longest Common Prefix问题:Write a function to find the longest common prefix string amongst an array of strings.思路: 简单的string运算我的代码:public class Soluti....
分类:
其他好文 时间:
2015-03-15 18:11:46
阅读次数:
86
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-03-15 13:43:07
阅读次数:
134
??
1.3- Longest Substring Without Repeating Characters
Given a string,find the length of the longest substring without repeating characters. Forexample, the longest substring without repeating l...
分类:
其他好文 时间:
2015-03-14 18:40:32
阅读次数:
123
题目地址:https://leetcode.com/problems/longest-valid-parentheses/Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.
For “(...
分类:
其他好文 时间:
2015-03-14 16:55:18
阅读次数:
188
求树的最长链,BFS和DFS都可以,时间复杂度O(n)#include#includeint tot,vt[20005],nxt[20005],a[20005];bool vis[10005];int n,i,j,xx,yy,s,ma,r;void search(int x,int dep){ .....
分类:
其他好文 时间:
2015-03-14 10:58:28
阅读次数:
207
[LeetCode] 032. Longest Valid Parentheses (Hard) (C++)...
分类:
编程语言 时间:
2015-03-13 16:35:05
阅读次数:
170