String window
文章平均质量分 62
flyatcmu
这个作者很懒,什么都没留下…
展开
-
Longest Substring with At Most Two Distinct Characters
Given a string, find the length of the longest substring T that contains at most 2 distinct characters. For example,Given s = “eceba”, T is "ece" which its length is 3. 思路:同向双指针,跟Longest Substri...原创 2016-09-04 14:48:57 · 422 阅读 · 0 评论 -
Longest Substring Without Repeating Characters
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. For ...原创 2014-12-09 10:21:20 · 673 阅读 · 0 评论