题目: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....
分类:
其他好文 时间:
2015-08-29 06:21:42
阅读次数:
190
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 exampl...
分类:
其他好文 时间:
2015-08-28 13:13:48
阅读次数:
91
Write a function to find the longest common prefix string amongst an array of strings.class Solution { public: string longestCommonPrefix(vect...
分类:
其他好文 时间:
2015-08-28 12:47:23
阅读次数:
138
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 39374
Accepted: 17315
Description
A numeric sequence of ai is ordered if
a1 a2 a...
分类:
其他好文 时间:
2015-08-27 16:42:39
阅读次数:
114
https://leetcode.com/problems/longest-substring-without-repeating-characters/思路:从某点结束所能取到的最早开头是到目前出现倒数第二次的字符的最末位置后一位如图:(S代表起点,T代表终点)abcabcab**S*T假设现在在...
分类:
其他好文 时间:
2015-08-27 13:11:45
阅读次数:
153
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ...
分类:
编程语言 时间:
2015-08-26 19:56:50
阅读次数:
156
palindromeQuestion 1Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length o...
分类:
其他好文 时间:
2015-08-26 01:31:55
阅读次数:
113
Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the...
分类:
其他好文 时间:
2015-08-25 20:59:06
阅读次数:
112
Description
Given an undirected weighted graph G, you should find one of spanning trees specified as follows.
The graph G is an ordered pair (V, E), where V is a set of vertices {v1,
v2, …, vn} a...
分类:
其他好文 时间:
2015-08-21 23:23:18
阅读次数:
255