Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2018-01-08 11:00:14
阅读次数:
196
Quartz Quartz是OpenSymphony开源组织在Job scheduling领域又一个开源项目,它可以与J2EE与J2SE应用程序相结合也可以单独使用。Quartz可以用来创建简单或为运行十个,百个,甚至是好几万个Jobs这样复杂的程序。Jobs可以做成标准的Java组件或 EJBs。 ...
分类:
其他好文 时间:
2018-01-06 19:06:00
阅读次数:
231
首先弄清楚Substring和Subsequence,前者是子串,要求连续,后者是子序列,可以不连续 ...
分类:
其他好文 时间:
2017-12-31 22:30:09
阅读次数:
213
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-12-28 19:43:28
阅读次数:
149
Array & ArrayList String LinkedList Stack & Queue Recursion 1. Knapsack non-repeating items. Not Bug Free 思路一:最直接的recursion. Tree & Graph Binary Searc ...
分类:
其他好文 时间:
2017-12-28 11:44:16
阅读次数:
207
Description Given a string, find the length of the longest substring without repeating characters. 题意 给定一个字符串,求出不带重复字符的最长子串的长度。 Example Given "abcabcb ...
分类:
其他好文 时间:
2017-12-22 19:46:26
阅读次数:
93
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-12-19 12:30:29
阅读次数:
210
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-12-14 11:58:16
阅读次数:
91
题目描述:求一个字符串的不含重复字符的最长连续子串的长度; 思路: 1. 使用一个哈希表保存字符出现的位置; 2. 使用left和right分别表示子串的最左和最右字符的下标; 3. 遍历字符串,如果当前字符在哈希表中并且当前字符在哈希中的位置大于left,表明left和right之间存在和righ ...
分类:
编程语言 时间:
2017-12-08 01:21:15
阅读次数:
166
Write a program that takes an integer and prints out all ways to multiply smaller integers that equal the original number, without repeating sets of f... ...
分类:
其他好文 时间:
2017-12-08 01:13:18
阅读次数:
107