Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-07-11 06:43:10
阅读次数:
124
76 Minimum Window Substring链接: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 characters in T in...
3 Longest Substring Without Repeating Characters链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/
问题描述:
Given a string, find the length of the longest substring withou...
分类:
其他好文 时间:
2015-07-10 09:34:17
阅读次数:
134
1 class Solution { 2 public: 3 int lengthOfLongestSubstring(string s) { 4 int len = s.length(), m = 0, l = 0, p[256] = { 0 }; 5 f...
分类:
编程语言 时间:
2015-07-10 02:11:53
阅读次数:
139
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2015-07-09 17:29:41
阅读次数:
106
30 Substring with Concatenation of All Words链接:https://leetcode.com/tag/hash-table/
问题描述:
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting ind...
分类:
其他好文 时间:
2015-07-09 14:38:37
阅读次数:
94
You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concatena...
分类:
其他好文 时间:
2015-07-09 14:26:16
阅读次数:
137
public class Foo {
public static void main(String[] args) {
String strValue="ABCDEFG";
strValue.substring(3);
strValue.concat("123");
System.out.println("result="...
分类:
其他好文 时间:
2015-07-09 11:19:39
阅读次数:
98
Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid par...
分类:
其他好文 时间:
2015-07-08 19:08:38
阅读次数:
115
Js的substring和C#的Substring的作用都是从一个字符串中截取出一个子字符串,但它们的使用方法却有很大的不同,下边我们来比较看看:Js的substring语法: 程序代码String.substring(start, end)说明: 返回一个从start开始到end(不包含end)的...