上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 484 下一页
摘要: 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 阅读全文
posted @ 2016-03-24 18:50 phlsheji 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 解题报告 题意: 对线段染色。询问线段区间的颜色种数。 思路: 本来直接在线段树上染色,lz标记颜色。每次查询的话訪问线段树,求出颜色种数。结果超时了,最坏的情况下,染色能够染到叶子节点。 换成存下区间的颜色种数,这样每次查询就不用找到叶子节点了。用按位或来处理颜色种数。 Description I 阅读全文
posted @ 2016-03-24 17:44 phlsheji 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.mastertheboss.com/jboss-performance/jboss-as-7-performance-tuning/page-4 还有非常多须要调优的地方终于影响Webserver的性能。当中一个最重要的因素是调优HTTP线程池设置,以匹配web请求的负载 阅读全文
posted @ 2016-03-24 17:11 phlsheji 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 首先,Future是一个接口,该接口用来返回异步的结果。 输出结果 阅读全文
posted @ 2016-03-24 16:48 phlsheji 阅读(7434) 评论(0) 推荐(0) 编辑
摘要: 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新手 阅读全文
posted @ 2016-03-24 15:35 phlsheji 阅读(203) 评论(0) 推荐(0) 编辑
摘要: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 阅读全文
posted @ 2016-03-24 14:35 phlsheji 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题意:给定一个有向图。强连通分支内传送不须要花费,其它有一定花费。每次询问两点的最小花费 思路:强连通缩点后求最短路就可以 代码: #include <cstdio> #include <cstring> #include <vector> #include <queue> #includ 阅读全文
posted @ 2016-03-24 14:24 phlsheji 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-03-24 13:41 phlsheji 阅读(258) 评论(0) 推荐(0) 编辑
摘要: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400... 阅读全文
posted @ 2016-03-24 13:34 phlsheji 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 找某一个文件的内容(如要读取文件D:\dir\dir2\text.txt,详细过程例如以下: (1)读取分区表/分区链表信息,找到磁盘F的起始扇区。 (2)读取D盘的第一个扇区(分区的BOOTSETOR)取得分区的每簇大小,MFT表起始簇号等信息。 (3)读取MFT表的第五个记录(根文件夹)找到文件 阅读全文
posted @ 2016-03-24 12:26 phlsheji 阅读(1333) 评论(0) 推荐(0) 编辑
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 484 下一页