Two pointer, 一头一尾;brute force的话需要时间复杂度为O(n^2);但是two pointer的方法可以进行简化(通过对某些case的省略): 具体: height[low] = height[high]: 则知道 height[high]与任意height[low...
分类:
其他好文 时间:
2014-12-30 09:11:34
阅读次数:
153
1 // hdu 1002 2 // high precision 3 // Dec.28 2014 4 5 #include 6 #include 7 #include 8 9 #define MaxL 111110 11 int T, a[MaxL], b[MaxL], s[Max...
分类:
其他好文 时间:
2014-12-29 08:52:24
阅读次数:
179
Problem Description
Today is the 10th Annual of “September 11 attacks”, the Al Qaeda is about to attack American again. However, American is protected by a high wall this time, which can be treatin...
分类:
编程语言 时间:
2014-12-29 01:02:11
阅读次数:
240
/*
*Kernel:Linux2.6.32.63
*File:\scripts\mod\modpost.h
\scripts\mod\modpost.c
*Author:DavidLin
*Date:2014-12-25pm
*Email:linpeng1577@163.comorlinpeng1577@gmail.com
*world:thecityofSZ,inChina
*Ver:000.000.001
*history:editortimedo
*1)LinPeng2014-12-25create..
分类:
系统相关 时间:
2014-12-28 01:53:17
阅读次数:
180
/*
*Kernel:Linux2.6.32.63
*File:\scripts\mod\modpost.h
\scripts\mod\modpost.c
*Author:DavidLin
*Date:2014-12-25pm
*Email:linpeng1577@163.comorlinpeng1577@gmail.com
*world:thecityofSZ,inChina
*Ver:000.000.001
*history:editortimedo
*1)LinPeng2014-12-25create..
分类:
系统相关 时间:
2014-12-28 01:49:20
阅读次数:
190
很少用JS来写算法, 需要注意的是JS是没有整形浮点型什么的 所以计算时要取整 var arr = [1,4,6,12,17,19,44,66,71]; function bisearch(arr,low, high, val){ var mid = parseInt((low + hig...
分类:
其他好文 时间:
2014-12-27 13:49:56
阅读次数:
120
4K(2160P,即4096×2160的像素分辨率)和8K(4320P,即7,680 × 4,320的像素分辨率)属于UHDTV。FHD是FULL HD(Full High Definition)的缩写,有人也将其称作是1080P,实际的分辨率则为1920x1080(包括1080i和1080P)。
分类:
其他好文 时间:
2014-12-26 16:32:03
阅读次数:
126
近期DDoS攻击事件频发(2014年DDoS攻击事件分析),为了保障业务的顺利进行,大家在了解DDoS防御方案的同时,也需要考虑抗DDoS设备选型问题了。绿盟科技安全+技术刊物这次为大家介绍国内抗击DDoS攻击设备,绿盟抗拒绝服务系统及绿盟抗拒绝服务系统(可管理系列)。抗DDoS设备针对..
分类:
其他好文 时间:
2014-12-26 14:56:00
阅读次数:
372
paper:Scalable, High-Quality Object DetectionILSVRC14上,detection刷到55.7%的MAP,google插入的地方,别人倍感压力啊。总体结果,其实我觉得很好的地方是,时间短,效果也很不错呢。就只用multibox就能达到50.7%的MAP,...
分类:
其他好文 时间:
2014-12-26 09:38:34
阅读次数:
242
一、Heartbeat概念Heartbeat是Linux-HA项目中的一个组件,也是目前开源HA项目中最成功的一个例子,Linux-HA的全称是High-AvailabilityLinux,这个开源项目的目标是:通过社区开发者的共同努力,提供一个增强linux可靠性(reliability)、可用性(availability)和可服务性(servic..
分类:
Web程序 时间:
2014-12-26 06:19:32
阅读次数:
401