会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Erio
博客园
首页
新随笔
联系
订阅
管理
2019年10月20日
leetcode 3 无重复字符的最长子串 滑动窗口
摘要: 类似于紫书例题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)
编辑
公告