A hard puzzle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 32851 Accepted Submission(s): 11754
Problem Description
lcy gives a ha...
分类:
其他好文 时间:
2015-03-28 08:56:26
阅读次数:
153
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:
其他好文 时间:
2015-03-20 18:12:38
阅读次数:
149
Not quite hard. Just remember initialize index to 0. Because if you initialize it as -1 and all the gas satisfy the cost, it will return -1.Actually, ...
分类:
其他好文 时间:
2015-03-20 01:11:41
阅读次数:
210
机构类型设计模式目录,之前的创建类型的设计模式介绍看这里适配器模式桥接模式组合模式装饰模式外观模式享元模式代理模式1. 适配器模式(将某个类的接口转换成客户端期望的另一个接口表示。适配器模式可以消除由于接口不匹配所造成的类兼容性问题。)引用院子Learning hard的示例,比较经典的插头例子us...
分类:
其他好文 时间:
2015-03-19 23:54:12
阅读次数:
284
原文链接:df和du显示的磁盘空间使用情况不一致的原因及处理在Linux下查看磁盘空间使用情况,最常使用的就是du和df了。然而两者还是有很大区别的,有时候其输出结果甚至非常悬殊。1. 如何记忆这两个命令du-Disk Usagedf-Disk Free2. df 和du 的工作原理2.1 du.....
分类:
其他好文 时间:
2015-03-19 19:53:03
阅读次数:
352
What ntopng can do for me? (http://www.ntop.org/products/ntop/) Sort network traffic according to many protocols Show network traffic and IPv4/v6 active hosts Store on disk persistent traffic stati...
分类:
其他好文 时间:
2015-03-19 13:27:12
阅读次数:
378
Still a DP problem.The transition function is not hard to get:1. When s[i-1] == t[j-1], which means we dont have to do any thing to handle the current...
分类:
其他好文 时间:
2015-03-19 09:52:36
阅读次数:
104
For this problem just need to know the structure of two traversal.1. It is hard to find the root node in the inorder traversal but it is easy in posto...
分类:
其他好文 时间:
2015-03-19 06:19:44
阅读次数:
119
11gR2开始,OCR和VOTE都存储在ASM磁盘组,因此替换OCR有两种方法,第一种是add new disk 再drop old disk后ASM磁盘组自动做数据重组,第二种是将OCR迁移至其他磁盘组
第一种:add disk 再 drop disk
SQL> select group_number,name,path from v$asm_disk;
GROUP_NUMBER NAME PATH
--------...
分类:
其他好文 时间:
2015-03-18 21:49:10
阅读次数:
168
今天nagios报警,一台服务器的disk满了,使用du -sh * 或 du -sh /* 查看目录的大小,查找占用空间大的目录/var/spool/clientmqueue....然后就想/var/spool/clientmqueue这个目录干嘛用的,纠结了半天,谷歌了下,原来/var/spoo...
分类:
系统相关 时间:
2015-03-18 15:20:56
阅读次数:
202