1 void swap(char[] a, int i, int j) 2 { 3 char tmp = a[i]; 4 a[i] = a[j]; 5 a[j] = tmp; 6 } 7 8 void Perm(ch...
分类:
其他好文 时间:
2015-03-16 17:42:16
阅读次数:
95
1.Download the required tarball from here2.unzip this tarball using "tar -zxvf tarball_name3.create a folder name java in /usr/lib, you need root perm...
分类:
数据库 时间:
2015-03-14 19:57:29
阅读次数:
174
STOI是汕头OI...无聊翻到了去年的比赛题目,就写然后自己测了一下。其实我很想吐槽为什么题目名是perm,perm好像和舞伴完全无关..dp(x,s)=∑dp(x-1,s-{i}) (0#include#include#include#define rep(i,r) for(int i=0;i=...
分类:
其他好文 时间:
2015-03-14 19:46:59
阅读次数:
138
这个是由一个线上问题导致的:背景:应用中内嵌了groovy引擎,会动态执行传入的表达式并返回执行结果线上问题:发现机器的fullGC从某个时候开始暴涨,并且一直持续;登到机器上,用jstat -gcutil 命令观察,发现perm区一直是100%,fullGC无法回收;将这台机器的内存dump出来进...
分类:
其他好文 时间:
2015-03-12 14:36:00
阅读次数:
308
1.简介之所以能用到这个命令,关键是由于很多命令不支持|管道来传递参数,而日常工作中有有这个必要,所以就有了xargs命令,例如:find /sbin -perm +700 | ls -l 这个命令是错误的find /sbin -perm +700 | xargs ls -l 这样才...
分类:
其他好文 时间:
2015-03-03 23:23:06
阅读次数:
149
1.定义模块参数的方法:
module_param(name, type, perm);
其中,name:表示参数的名字;
type:表示参数的类型;
perm:表示参数的访问权限;
2. 数组类型模块参数的定义:
用逗号间隔的列表提供的值;
声明一个数组参数:
module_param_array(name, type, num, perm);
其中,name:表示数组的名字;
type:表示参数的类型;
num :表示数组中元素数量;
perm...
分类:
其他好文 时间:
2015-03-03 13:37:06
阅读次数:
151
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2015-02-24 01:52:56
阅读次数:
152
新blog地址:http://hengyunabc.github.io/netstat-difference-proc-fd-socket-stat/最近,线上一个应用,发现socket数缓慢增长,并且不回收,超过警告线之后,被运维监控自动重启了。首先到zabbix上观察JVM历史记录,发现JVM-Perm space最近两周没有数据,猜测是程序从JDK7切换到JDK8了。问过开发人员之后,程序已经...
分类:
Web程序 时间:
2015-02-17 11:42:43
阅读次数:
685
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2015-02-12 18:20:28
阅读次数:
110
引用Net::ZooKeeper这个包,可能会报这个错误Can‘tload‘/usr/local/lib64/perl5/auto/Net/ZooKeeper/ZooKeeper.so‘formoduleNet::ZooKeeper:/usr/local/lib64/perl5/auto/Net/ZooKeeper/ZooKeeper.so:undefinedsymbol:ZOO_PERM_CREATEat/usr/lib64/perl5/XSLoader.pmline70.
at..
分类:
Web程序 时间:
2015-02-11 19:01:55
阅读次数:
215