Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o...
分类:
其他好文 时间:
2015-05-18 14:29:35
阅读次数:
84
Count the number of prime numbers less than a non-negative number,n.1.常规思路(计算复杂度为O(n*sqrt(n))),提交后超时。public static boolean isPrime(int m){ bool...
分类:
其他好文 时间:
2015-05-18 10:32:38
阅读次数:
90
使用sublime Text3 的时候,安装less2Css后,和很多人一样以为大功告成,开始要运行编译less文件,结果开始发现 于是乎开始搜索问题和解决方案,然后就有了下面的解决方案1 方案1:通过window path +less.js-windows 的方式(网上可以快速找到这种解决...
分类:
Web程序 时间:
2015-05-16 23:21:41
阅读次数:
564
题意:
There is a array contain N(1
Every query will be:
1 x : ask longest substring which every number no less than x
2 y x : change the A[y] to x. there are at most change 10 times.
For each ask...
分类:
其他好文 时间:
2015-05-16 14:52:28
阅读次数:
121
号外
昨天,atom官方更新了atom的版本;
把之前内置到core的核心插件autocomplete替换成autocomplete plus,还做了许多修正,具体看这里
Notable Changes
Atom now bundles Autocomplete Plus and the completion providers for HTML, CSS, Less, Sass, sni...
分类:
其他好文 时间:
2015-05-16 12:03:44
阅读次数:
233
进程查看ps ax : 显示当前系统进程的列表ps aux : 显示当前系统进程详细列表以及进程用户ps ax|less :如果输出过长,可能添加管道命令less查看具体进程,如:ps ax|grep XXX(XXX为进程名称)获取进程idshell获取进程ID的方法: ps -A |grep "....
分类:
系统相关 时间:
2015-05-15 15:09:04
阅读次数:
268
examination questionsDescription:Count the number of prime numbers less than a non-negative number, nReferences:How Many Primes Are There?Sieve of Era...
分类:
其他好文 时间:
2015-05-15 07:53:07
阅读次数:
388
Description:Count the number of prime numbers less than a non-negative number,n 1 int countPrimes(int n) { 2 int i,j; 3 bool *primer = malloc(...
分类:
其他好文 时间:
2015-05-15 01:17:42
阅读次数:
104
在html中引入<linkrel="stylesheet/less"type="text/css"href="styles.less">
<scriptsrc="less.js"type="text/javascript"></script>styles.less//变量
@color:#4D926F;
.variable{
color:@color;
}
//混合
.rounded-corners(@radius:5px){
border-radius..
分类:
其他好文 时间:
2015-05-14 20:42:34
阅读次数:
230
Linux查看登录成功的用户信息命令:last最新的登录记录在最前面,所以可以用一下命令来查看。last|less查看登录失败的用户信息命令:lastb查看登录日志命令:tail/var/log/secure现在sshd的登陆范围vim/etc/sshd_confgPermitRootLoginnoMatchAddress192.168.2.0/24PermitRootLogin..
分类:
其他好文 时间:
2015-05-14 14:26:08
阅读次数:
104