题目:
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 ...
分类:
其他好文 时间:
2015-05-13 19:51:47
阅读次数:
145
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
* stru...
分类:
其他好文 时间:
2015-05-13 19:42:48
阅读次数:
143
1、取出内容${} 例如,${document.fileName}2、 ${cms.substring(document.title, 20, "...")} ${cms.substring(document.title, 18, "...")} ${cms.substring(document.t...
分类:
其他好文 时间:
2015-05-13 19:22:03
阅读次数:
126
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 ...
分类:
其他好文 时间:
2015-05-13 00:42:12
阅读次数:
100
Longest Palindromic SubstringGiven 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 longest palindromic substrin...
分类:
其他好文 时间:
2015-05-12 23:09:34
阅读次数:
163
发现自己原来掌握的一下算法,都忘掉了,啊啊啊------------------------------------------------------------------------------------------------------Longest Palindromic Subst....
分类:
其他好文 时间:
2015-05-12 22:47:52
阅读次数:
217
题目:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the long...
分类:
其他好文 时间:
2015-05-12 20:40:49
阅读次数:
88
https://leetcode.com/problems/minimum-window-substring/Given a string S and a string T, find the minimum window in S which will contain all the charac...
Write a function to find the longest common prefix string amongst an array of strings.
class Solution {
public:
string longestCommonPrefix(vector& strs) {
if(strs.size()==0) return "";
...
分类:
其他好文 时间:
2015-05-12 09:37:20
阅读次数:
112
public class Solution { public String longestPalindrome(String s) { if (s == null || s.length() == 0) { return null; } ...
分类:
其他好文 时间:
2015-05-12 09:16:55
阅读次数:
161