
字符串处理
UmdCoding
这个作者很懒,什么都没留下…
展开
-
3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.Examples:Given “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, with the le原创 2016-08-12 16:58:48 · 368 阅读 · 0 评论 -
5. Longest Palindromic Substring
Given 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 substring.分析:求最长的回文子串,时间赋值度n平方;aaa原创 2016-08-13 21:50:49 · 268 阅读 · 0 评论