
leetcode思路
qq_32176879
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
205. Isomorphic Strings
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with anot原创 2017-08-15 09:12:40 · 194 阅读 · 0 评论 -
438. Find All Anagrams in a String
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and p will not be原创 2017-10-06 20:07:48 · 195 阅读 · 0 评论 -
NO 76 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 complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". 给原创 2017-10-08 20:31:01 · 207 阅读 · 0 评论 -
3. Longest Substring Without Repeating Characters
/* Given a string, find the length of the longest substring without repeating characters. 给定一个字符串,找到最长子串的长度,而不重复字符。 */ int lengthOfLongestSubstring(string s) { if (s.size() == 0) return 0;原创 2017-10-09 22:41:07 · 176 阅读 · 0 评论 -
NO 30 Substring with Concatenation of All Words
总的思路是使用了两次滑动窗:第一次是用于截取满足长度要求的混序子字符串,第二次是判断混序子字符串是否满足题意原创 2017-10-11 12:41:40 · 181 阅读 · 0 评论