[leetcode] 3.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 "bbbbb" the longest substring is "b", with the length of 1.

 

class Solution {
public:
int lengthOfLongestSubstring(string s) {

}
};

 

posted @ 2015-06-17 14:30  酷酷的门门  阅读(87)  评论(0编辑  收藏  举报