【题目】
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and use...
分类:
其他好文 时间:
2014-12-28 22:21:58
阅读次数:
242
./configure--prefix=/usr/local/nginx--conf-path=/etc/nginx/nginx.conf--user=nginx--group=nginx--error-log-path=/var/log/nginx/error.log--http-log-path=/var/log/nginx/access.log--pid-path=/var/run/nginx/nginx.pid--lock-path=/var/lock/nginx.lock--with-http_ss..
分类:
其他好文 时间:
2014-12-28 18:22:46
阅读次数:
154
1 krunner
一般情况,这个东西可以呼唤出来,如果吧焦点设置在桌面上,但是当我们的焦点在其他应用中,敲击键盘上的字符就千呼万唤不出来了。一直都不知道怎么吧这个东西找出来,今天终于找到了解决方案。这个东西较 krunner。http://en.wikipedia.org/wiki/Run_command 既然找到了,我们把它加到系统的快捷键中。在
trigger 中添加对应的快捷...
分类:
系统相关 时间:
2014-12-28 18:18:03
阅读次数:
200
/*
*File:test.c
*Author:DavidLin
*Date:2014-12-07pm
*Email:linpeng1577@163.comorlinpeng1577@gmail.com
*world:thecityofSZ,inChina
*Ver:000.000.001
*history:editortimedo
*1)LinPeng2014-12-07createdthisfile!
*2)
*/1.获得root权限:suroot;2.make3.insmod./test.ko..
分类:
系统相关 时间:
2014-12-28 01:53:24
阅读次数:
179
苹果公司的ios文档(https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html)介绍里面,port-based作为线程之间的通信花了很长篇幅来介绍。但是有趣的是,当我尝试去使用machport的时候,xc...
分类:
移动开发 时间:
2014-12-27 23:12:12
阅读次数:
234
To see which tasks are available for our build we can run Gradle with the command-line option -t or --tasks. Gradle outputs the available tasks from o...
分类:
其他好文 时间:
2014-12-27 21:37:29
阅读次数:
208
Normally Gradle looks for a build script file with the name build.gradle in the current directory to execute a build. But we can easily use a differen...
分类:
其他好文 时间:
2014-12-27 21:36:08
阅读次数:
189
With Gradle we can execute Java applications using the JavaExec task or the javaexec() method. If we want to run Java code from an external dependency...
分类:
移动开发 时间:
2014-12-27 20:14:55
阅读次数:
165
非关键性数据文件丢失(可以脱机数据文件的丢失):
run{
sql 'alter database datafile
restore datafile
recover datafile
slq 'alter database datafile
}
除了system、undo_tablespace参数后值对应的表空间都可以采用以上的办法恢复。
[oracle@oracle ~...
分类:
其他好文 时间:
2014-12-27 19:01:55
阅读次数:
176
在ios开发多线程程序的时候,往往会碰到run loop。
对于run loop, 苹果开发网站上有非常详细的说明,https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html
强烈建议啃下来,不要怕英文...
分类:
移动开发 时间:
2014-12-27 19:01:34
阅读次数:
216