Longest Substring Without Repeating Characters 找无相同字符的最长子串,o(n)暴力判断即可 16. 3Sum Closest 对于给定整数,在给定数组中寻找三个数的和,使得这个和最接近这个整数 显然二分即可 14. Longest Common Pre ...
分类:
其他好文 时间:
2017-04-03 11:33:17
阅读次数:
170
问题描述 Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the ...
分类:
其他好文 时间:
2017-03-11 21:33:39
阅读次数:
134
前言:Spring中使用Quartz 有两种方式,一种是继承特定的基类:org.springframework.scheduling.quartz.QuartzJobBean,另一种则不需要,(推荐使用第二种)。下面分别介绍。 1、作业类继承 org.springframework.scheduli ...
分类:
编程语言 时间:
2017-02-15 16:21:16
阅读次数:
222
<!-- 启动触发器的配置开始 --> <bean name="startQuertz" lazy-init="false" autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <prop ...
分类:
编程语言 时间:
2017-02-13 12:19:39
阅读次数:
215
Given a string, find the length of the longest substring without repeating characters. Examples: 解法: 建立一个大小为256整形数组,用来记录每个字符上一次出现的位置。longest记录最长的子串长度, ...
分类:
其他好文 时间:
2017-02-09 23:32:46
阅读次数:
164
3. Longest Substring Without Repeating Characters 3. Longest Substring Without Repeating Characters Total Accepted: 244703 Total Submissions: 1029071 ...
分类:
其他好文 时间:
2017-02-08 14:15:05
阅读次数:
133
今天想写个Spring集成Quartz的小Demo,结果报错cronExpression未定义,通过差错,原来是因为Spring 3.0.5与Quartz2.2.2不兼容,Spring3.1以下的只能与Quartz1.x 的版本相兼容。 解决办法:将quartz-2.2.2.jar换成 quartz ...
分类:
编程语言 时间:
2017-02-07 20:34:39
阅读次数:
198
Often times you’ll have variations that you’ll want to make to your npm scripts and repeating yourself is inefficient and verbose. Instead you can cre ...
分类:
其他好文 时间:
2017-02-06 21:02:42
阅读次数:
148
第三道题,和前面的那个第一道题数组里面的两个元素求和有点像,题目如下: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", ...
分类:
其他好文 时间:
2017-02-05 13:54:06
阅读次数:
177
这是一个简单版本of LC 424 Longest Repeating Character Replacement 又是Window, 又是Two Pointers Window还是采用每次都try to update left使得window valid, 每次都检查最大window ...
分类:
其他好文 时间:
2017-02-01 10:48:22
阅读次数:
178