Leetcode_3
来源:互联网 发布:数据删除恢复软件 编辑:程序博客网 时间:2024/06/05 04:20
long length=strlen(s); int result = 0; int count = 0; while (count<length) { int i=count; int j=i+1; while (j<length) { i=count; bool notfound=true; while (i<j&&i<length) { if(s[i]==s[j]){ notfound=false; break; } else{ i++; } } if(notfound) j++; else break; } if(result<(j-count)){ result=j-count; } count++; } return result;
0 0
- Leetcode_3
- LeetCode_3---Longest Substring Without Repeating Characters
- leetcode_3 - Longest Substring Without Repeating Characters
- LeetCode_3、5两题(substring问题)
- leetcode_3.Longest Substring Without Repeating Characters
- leetcode_3 Max Points on a Line 最多点共线
- leetcode_3. Longest Substring Without Repeating Characters-没有重复字符的子串
- 算法导论学习笔记-2
- 基于GOLDENGATE构建在线报表系统--模式1
- odi 1.7--补丁--关于数据是10的整数倍时往essbase送数报错
- Myeclipse中的发布项目到服务器的按钮,点击没有反应了
- 小米净水器
- Leetcode_3
- U-Boot启动阶段修改启动参数方法及分析
- android 最新技术文章
- 刚刚开通博客,希望在这里可以学习到更多的东西
- android Json解析
- Bash Shell 快捷键
- 十进制转二进制
- APUE可靠信号与不可靠信号
- Delphi中添加WebBrowser扩展接口