摘要:
Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The long 阅读全文
摘要:
解题报告 题意: 对线段染色。询问线段区间的颜色种数。 思路: 本来直接在线段树上染色,lz标记颜色。每次查询的话訪问线段树,求出颜色种数。结果超时了,最坏的情况下,染色能够染到叶子节点。 换成存下区间的颜色种数,这样每次查询就不用找到叶子节点了。用按位或来处理颜色种数。 Description I 阅读全文
摘要:
原文:http://www.mastertheboss.com/jboss-performance/jboss-as-7-performance-tuning/page-4 还有非常多须要调优的地方终于影响Webserver的性能。当中一个最重要的因素是调优HTTP线程池设置,以匹配web请求的负载 阅读全文
摘要:
首先,Future是一个接口,该接口用来返回异步的结果。 输出结果 阅读全文
摘要:
http://redis.io/ http://redis.readthedocs.org/en/latest/index.html http://www.redisbook.com/en/latest/ http://snowolf.iteye.com/blog/1630697 5 Redis新手 阅读全文
摘要:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 阅读全文
摘要:
题目链接 题意:给定一个有向图。强连通分支内传送不须要花费,其它有一定花费。每次询问两点的最小花费 思路:强连通缩点后求最短路就可以 代码: #include <cstdio> #include <cstring> #include <vector> #include <queue> #includ 阅读全文
摘要:
阅读全文
摘要:
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400... 阅读全文
摘要:
找某一个文件的内容(如要读取文件D:\dir\dir2\text.txt,详细过程例如以下: (1)读取分区表/分区链表信息,找到磁盘F的起始扇区。 (2)读取D盘的第一个扇区(分区的BOOTSETOR)取得分区的每簇大小,MFT表起始簇号等信息。 (3)读取MFT表的第五个记录(根文件夹)找到文件 阅读全文