这道题目使用的方法具有非常大的普遍性,实际上是两个指针。一个指针记录当前所记录的子串的开始,另一个是当前遍历的位置,如果产生了重复,那么需要进行修正,实际上是对子串进行收缩。从当前子串开始位置到重复位置,重置相应的字符为违被搜索状态。在收缩之前需要进行,最长子串长度的更新。 1 public cla...
分类:
其他好文 时间:
2015-08-12 23:02:08
阅读次数:
121
问题描述Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter...
分类:
其他好文 时间:
2015-08-11 15:55:30
阅读次数:
88
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-08-09 00:17:57
阅读次数:
86
1. 简单介绍. ? ? A Timer optimized for approximated I/O timeout scheduling.? ? ??关于Timer的介绍可以看看这篇文章, 写得不错 : ?http://novoland.github.io/%E5%B9%B6%E5%8F%91/2014/07/26/%E5%AE%...
分类:
Web程序 时间:
2015-08-07 20:27:57
阅读次数:
231
?Avoid Scheduling FailuresNorman CarnovaleFAilEd pRojECTS CAn HAppEn FoR A MulTiTudE oF REASonS. One of the most common sources of failure is altering the project schedule in mid- stream without proper...
分类:
其他好文 时间:
2015-08-07 09:38:05
阅读次数:
131
1、volley 项目地址 https://github.com/smanikandan14/Volley-demo(1) JSON,图像等的异步下载;(2) 网络请求的排序(scheduling)(3) 网络请求的优先级处理(4) 缓存(5) 多级别取消请求(6) 和Activity和生命周期的联...
分类:
移动开发 时间:
2015-08-05 12:27:19
阅读次数:
138
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:
其他好文 时间:
2015-08-02 16:46:27
阅读次数:
93
July 16, 2015Problem statement:Longest Substring Without Repeating CharactersRead the blog:http://blog.csdn.net/fightforyourdream/article/details/1786...
分类:
其他好文 时间:
2015-07-30 14:52:05
阅读次数:
109
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 re...
分类:
其他好文 时间:
2015-07-27 23:10:47
阅读次数:
106
Problem Definition:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withoutre...
分类:
其他好文 时间:
2015-07-27 20:57:10
阅读次数:
105