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
一、工作原理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
##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
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
/**
...
分类:
其他好文 时间:
2014-08-03 12:54:55
阅读次数:
201
1. Choose a topic.2. Decide what to develop.3. Check feasibility of your idea, including the tools, time, etc.4. If feasible, write a project proposal...
分类:
其他好文 时间:
2014-08-02 20:38:53
阅读次数:
197
被这样的题目忽悠了,一开始以为使用Trie会大大加速程序的,没想到,一不小心居然使用Trie会超时。
最后反复试验,加点优化,终于使用Trie是可以过的,不过时间大概难高于1500ms,一不小心就会超时。
看来这是一道专门卡Trie的题目,只好放弃不使用Trie了。
也得出点经验,如果字符串很多,如本题有1万个字符串的,那么还是不要使用Trie吧,否则遍历一次这样的Trie是十分耗时的,2s...
分类:
其他好文 时间:
2014-08-02 15:30:03
阅读次数:
245
Spell checker
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 19044
Accepted: 6959
Description
You, as a member of a development team for a new spell check...
分类:
其他好文 时间:
2014-08-02 13:00:53
阅读次数:
262
1、时间同步安装Nagios后,有3个检查时间同步的插件,根据不同的检测目标,使用不同的插件:check_ntp:已过时,最好不要再使用;check_ntp_peer:用于检查ntp服务器的健康状况。check_ntp_time:用于检查指定的服务器与ntp服务器之间的时间差。2、如何监控LVS的状态如果要监测..
分类:
移动开发 时间:
2014-08-01 20:08:03
阅读次数:
473
OCX打包CAB并签名过程一、打包cab制作cab文件时需要将所有的相关文件都包含进去,可以通过Depends(VC自带的)检查需要的文件。使用inf文件将这些东西都写进去。1、制作inf文件default.INF最开始一般是[Version]区:eg: [Version]signature=" $...
分类:
其他好文 时间:
2014-08-01 19:13:42
阅读次数:
260