Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-05-02 14:19:48
阅读次数:
197
Reference : https://leetcode.com/discuss/72701/here-10-line-template-that-can-solve-most-substring-problems 3. Longest Substring Without Repeating Cha ...
分类:
其他好文 时间:
2016-05-02 11:52:27
阅读次数:
279
In what kind of situation will we need to use topological sort? Precedence(优先级) scheduling, say given a set of tasks to be completed with precedence c ...
分类:
其他好文 时间:
2016-05-01 12:12:17
阅读次数:
117
StringOfChar Returns a string with a specified number of repeating characters. In Delphi code, StringOfChar returns a string that contains Count chara ...
分类:
其他好文 时间:
2016-05-01 01:09:08
阅读次数:
175
1、volley 项目地址 https://github.com/smanikandan14/Volley-demo (1) JSON,图像等的异步下载; (2) 网络请求的排序(scheduling) (3) 网络请求的优先级处理 (4) 缓存 (5) 多级别取消请求 (6) 和Activity和 ...
分类:
移动开发 时间:
2016-04-28 21:18:43
阅读次数:
282
Folding Description Bill is trying to compactly represent sequences of capital alphabetic characters from `A' to `Z' by folding repeating subsequences ...
分类:
其他好文 时间:
2016-04-27 00:11:00
阅读次数:
204
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-04-23 11:33:14
阅读次数:
209
题意为给出一个字符串,找出其中没有重复字符的最长子序列的长度。brute force的复杂度为O(n^3).依次查找每个子字符串是否含有重复字符,并比较长度。开始看到题目,想用DP解决,在已有目前最长子序列的情况下,比较把当前字符串放入和不放入,那个子序列长度会更大,但是这种解法的复杂度为O(n^2 ...
分类:
其他好文 时间:
2016-04-19 00:09:11
阅读次数:
127
1、volley 项目地址 https://github.com/smanikandan14/Volley-demo (1) JSON,图像等的异步下载;(2) 网络请求的排序(scheduling)(3) 网络请求的优先级处理(4) 缓存(5) 多级别取消请求(6) 和Activity和生命周期的 ...
分类:
移动开发 时间:
2016-04-18 08:46:33
阅读次数:
186
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-04-17 11:37:10
阅读次数:
158