A lot of computations involve processing a string one character at a time. Often they start at the beginning, select each character in turn, do someth...
分类:
其他好文 时间:
2014-06-23 07:19:02
阅读次数:
257
var p =params.join("&");var a = document.createElement('a');a.href = 'report/exportpubcount.do'+p;a.target = '_blank';a.id='exppub';document.body.appe...
分类:
Web程序 时间:
2014-06-23 06:57:40
阅读次数:
2175
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=15题意:给定一个图。判断是不是弦图?思路:(1)神马是弦图?对于一个无向图,若该图的任意一个长度大于3的环中存在一条边连接这个环上不相邻的两点,则此图称作弦图。(2)什么...
分类:
Web程序 时间:
2014-06-23 06:50:38
阅读次数:
300
测试使用agentd监听获取数据。服务端的安装可以查看http://blog.chinaunix.net/space.php?uid=25266990&do=blog&id=3380929下载http://www.zabbix.com/downloads/2.0.3/zabbix_agents_2....
分类:
系统相关 时间:
2014-06-23 06:30:18
阅读次数:
261
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2182题意:给出一个无向图,问最少删掉多少个顶点之后图变得不连通?思路:将原图每个点拆点(i,i+n),连边,对原图的边(u,v),连边,。然后对于每对顶点(i,j)...
分类:
Web程序 时间:
2014-06-23 00:51:26
阅读次数:
291
从语言角度讲, lua 5.1 定义了 # 对数组取长度的约束. 而 lua 5.2 不严格定义了,只说如果有 nil 就不确定
a[4] = 11;
print(a[#a])
---print 11
-----------------------------------
a = {}
for i=1,3 do a[i] = i*3 end...
分类:
其他好文 时间:
2014-06-22 20:56:03
阅读次数:
257
Determine whether an integer is a palindrome. Do this without extra space.
思路:若使用【Leetcode】Reverse
Integer 的方法,判断反转后的整数是否与原整数相同,则可能出现溢出情况;又因为题目要求不适用额外空间,可以之间对比整数第一个与最后一个数的值,再依次类推。
class Solution {...
分类:
其他好文 时间:
2014-06-22 20:43:56
阅读次数:
187
原文首发在github上 MongoNote01.Start
MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling.
这是mongo官方给出的定义。定义里的几个关键点体现了mongo的几个突出的优点:
do...
分类:
其他好文 时间:
2014-06-22 15:31:57
阅读次数:
280
?Methods (as well as lambda expressions or anonymous methods) can be markedwith the async keyword to enable the method to do work in a nonblockingmann...
分类:
其他好文 时间:
2014-06-21 17:58:34
阅读次数:
197
One of the most important use-case in any cloud is provisioning a VM . In this article we shall do a walk through about an instance(VM) being provisio...
分类:
其他好文 时间:
2014-06-21 16:59:43
阅读次数:
376