find的语法:find [起始目录] 寻找条件 操作还有种表述方式:find PATH OPTION [-exec COMMAND { } \;]因为find命令会根据我们给的option,也就是寻找条件从我们给出的目录开始对其中文件及其下子目录中的文件进行递归搜索,所以我觉的这个地方说是“起始目...
分类:
其他好文 时间:
2014-06-29 00:57:38
阅读次数:
244
题目
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the...
分类:
其他好文 时间:
2014-06-18 12:05:44
阅读次数:
244
转自:http://www.cnblogs.com/xmaomao/p/3184542.html1. 简单的手动放置 键值对 到JSONObject,然后在put到JSONArray对象里List al = articleMng.find(f); System.out.prin...
分类:
Web程序 时间:
2014-06-18 10:48:53
阅读次数:
311
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-06-18 10:17:40
阅读次数:
174
Problem Description
You are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a number x to make
as small as possible!
...
分类:
其他好文 时间:
2014-06-18 00:58:54
阅读次数:
276
Write a function to find the longest common prefix string amongst an array of strings.题解: 寻找一组字符串的最长公共前缀。最简单的方法,用一个字符串记录当前最长的公共前缀,然后依次比较。时间复杂度: O(N). ...
分类:
其他好文 时间:
2014-06-18 00:03:08
阅读次数:
274
题目
Given an array S of n integers, are there elements a, b, c in S such that a + b + c =
0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a tr...
分类:
其他好文 时间:
2014-06-17 22:04:49
阅读次数:
292
最近开始学习CMake,因为项目需求需要用到Qt,自带的qmake会出现许多问题(比如文件修改之后有时候qmake不会侦测到不会重新编译,需要手动去编译等),于是开始尝试使用CMake来编写Qt程序,顺便学习一下怎么用CMake来使用find_package,也算给自己一次学习的机会。
切入正题,CMake对于一些有名的库都有自带文件夹中Modules里.cmake文件查询的支持,比如你...
分类:
其他好文 时间:
2014-06-17 19:17:05
阅读次数:
255
这个题目据说是百度一面的面试题,Linux题:查找以core.1,core.2....形式命名的文件,然后将这些文件名改成bak。core.1,bak.core.2,.........
分类:
系统相关 时间:
2014-06-17 19:02:24
阅读次数:
368
gamedb:/bak/backup/web#find.-maxdepth1-ctime+60|more
./cncgcg
./gm
./igame
./20140410
./20140403
./qzstatistics
./20140415使用maxdepth可以指定列出的层数
分类:
其他好文 时间:
2014-06-17 17:07:30
阅读次数:
253