Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-10-04 01:10:45
阅读次数:
200
首先呢 可能会想到用一个windows去放这些东西.可能会想到hashtable去. 但是hashtable 无法用Index去查询.abcabcbb. hashtable: abc 当第二个a来的时候, 我们想bca 貌似不好实现.这种情况就很像LRU. 用 node连接,用hashta...
分类:
其他好文 时间:
2014-10-02 04:12:22
阅读次数:
154
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-10-01 09:59:00
阅读次数:
245
UVA 1317 - Concert Hall Scheduling
题目链接
题意:现在有两个音乐厅,有一些人要租用,每次租一个区间的时间,给w钱,要求一个租的方案使得总收入最大,问总收入
思路:区间k覆盖问题,一个左闭右开区间可以建一条边,容量为1,代价为-w(因为要求最大),然后区间每个[i, i + 1]建一条边,容量2,代价0,然后跑一下费用流即可
代码:
...
分类:
其他好文 时间:
2014-09-25 17:37:19
阅读次数:
197
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
编程语言 时间:
2014-09-22 23:29:43
阅读次数:
231
void lock()Acquires the lock.If the lock is not available then the current thread becomes disabled for thread scheduling purposes and lies dormant unt...
分类:
其他好文 时间:
2014-09-22 01:23:41
阅读次数:
417
一个定时执行的job package dk.spring.quartz;
import java.util.Date;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.Qua...
分类:
编程语言 时间:
2014-09-21 18:32:31
阅读次数:
279
An I/O scheduler and a method for scheduling I/O requests to a solid-state drive (SSD) is disclosed. The I/O scheduler in accordance with the present ...
分类:
系统相关 时间:
2014-09-21 01:33:49
阅读次数:
587
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-09-18 14:40:43
阅读次数:
208
Better not to ignore the past but learn form it instead,Otherwise history has a way of repeating itself最好不要忽略过去,而是从中得到些教训,否则,历史会不断重复上演Better not to ig...
分类:
其他好文 时间:
2014-09-18 13:02:33
阅读次数:
196