摘要: 类似于紫书例题8-7. 用滑动窗口。 class Solution { public: int lengthOfLongestSubstring(string s) { set<char>ss; int left=0,right=0,ans=0; while(right<s.length()) { 阅读全文
posted @ 2019-10-20 19:24 Erio 阅读(117) 评论(0) 推荐(0) 编辑