每天一道在线编程题
问题:Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.
Example:
Given “abcabcbb”, the answer is “abc”, which the length is 3.
Given “bbbbb”, the answer is “b”, with the length of 1.
Given “pwwkew”, the answer is “wke”, with the length of 3. Note that the answer must be a substring, “pwke” is a subsequence and not a substring.
解决方案:(C语言)
运行效率:
【注意】本文属于作者原创,欢迎转载!转载时请注明以下内容:
(转载自)ShengChangJian's Blog编程技术文章地址:
https://ShengChangJian.github.io/2016/06/Longest-Substring.html
主页地址:https://shengchangjian.github.io/