An example of in-order traversal application. My intuition is that, we have to serialize it into an array and check, but in-order traversal does exact...
分类:
其他好文 时间:
2014-08-05 03:03:48
阅读次数:
241
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-08-05 00:37:38
阅读次数:
233
At this point, we’ve sent draw calls down from our app all the way through various driver layers and the command processor; now,finallywe’re actual...
分类:
其他好文 时间:
2014-08-05 00:37:18
阅读次数:
343
MATLAB的eps函数,官方帮助文档是这么描述的:Floating-point relateive accuracy,也就是浮点数的相对精度。 大家都知道,在数学中,实数有无穷多个,数值可以无限大,精度也可以无限小。而在计算机中,因为表示数值的字长有限,不可能无限地表示一个数的有效数字。所以...
分类:
其他好文 时间:
2014-08-05 00:27:18
阅读次数:
542
一、工作原理Nagios服务器使用check_nt工具与客户端程序通讯,客户端程序NSCP使用命令来获取本地客户端的信息并返回给check_nt。check_nt只是NSCP其中一项服务,Nagios还可以通过check命令(如check_http检查WEB服务)、check_nrpe、NSCA、WMI来监控windows客户端。二、下载客..
分类:
移动开发 时间:
2014-08-04 18:22:08
阅读次数:
453
第一遍,刘汝佳提示+题解;回头再看!!!POINT: dp[time][sta]; 在time时刻在车站sta还需要最少等待多长时间; 终点的状态很确定必然是的 dp[T][N] = 0 ---即在T时刻的时候正好达到N站点 我们可以 从终点的状态往起始的状态转化, 一步步走就可以了。 h...
分类:
其他好文 时间:
2014-08-04 17:26:17
阅读次数:
267
移动 电信 联通 APN cmwap cmnet ctwap ctnet 3gwap uniwap 3gnet uninet设置 APN(Access Point Name),即“接入点名称”,用来标识GPRS的业务种类,目前分为两大类:CMWAP(通过GPRS访问WAP业务)、CMNET(除了W....
分类:
移动开发 时间:
2014-08-04 17:04:17
阅读次数:
403
##Manage Kernel Modules display modules >lsmod Check modules parameters >modinfo -p usb_storage|st|sc8 Load modules >modprobe usb_storage|st|sc8 Rmove mdules > rmmod usb_storage|st|sc8 ###Set defau...
分类:
其他好文 时间:
2014-08-04 14:47:07
阅读次数:
247
Understand limitations of floating point representations.Never check for equality with ==. Instead, check if the difference is less than an epsilon va...
分类:
其他好文 时间:
2014-08-04 14:13:17
阅读次数:
235
旋 转卡壳水题。直接使用旋转卡壳求距离。#include #include #include #include #include using namespace std;const int MAXN=50100;struct point { int x,y;}p[MAXN];int n;int st...
分类:
其他好文 时间:
2014-08-03 17:36:05
阅读次数:
227