查询相关 find 按规则查找某个文件或文件夹,包括子目录 find . -name '*.sh' -- 以.sh结尾的文件 find . -name '*channel*' -- 包含channel字符的文件 find . -name 'build*' -- 以build开头的文件 find . ...
分类:
系统相关 时间:
2016-09-04 14:14:09
阅读次数:
297
Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is tha ...
分类:
其他好文 时间:
2016-09-04 13:00:49
阅读次数:
97
标签: 动态规划 描述: Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Clarification ...
分类:
其他好文 时间:
2016-09-04 12:53:56
阅读次数:
182
标签:动态规划 题目描述: Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. 解题思路: 这一题是非常经典的动态规划问题,在解题思路上可以按 ...
分类:
其他好文 时间:
2016-09-04 07:56:22
阅读次数:
157
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. Notice Bonus point if you ...
分类:
其他好文 时间:
2016-09-04 07:55:49
阅读次数:
180
Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 2 el ...
分类:
其他好文 时间:
2016-09-04 01:40:47
阅读次数:
203
Give an integer array,find the longest increasing continuous subsequence in this array. An increasing continuous subsequence: Can be from right to lef ...
分类:
其他好文 时间:
2016-09-04 01:35:48
阅读次数:
128
1、显示当前系统上root、fedora或user1用户的默认shell;答:需要找到3个字符串,需要用到“或”命令,所以使用egrep。找到后cut再次筛选出我们需要显示的用户默认的shell。2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();答:3、使用ech..
分类:
编程语言 时间:
2016-09-04 00:18:51
阅读次数:
351
便于考前用。。。 平时先囤着。。。 hash ACM1996总决赛-10-20-30 extend euclid poj 1061-青蛙的约会 拓扑排序 poj 1270-Following Orders dsu poj 1703-Find them, Catch them nim poj 1704 ...
分类:
其他好文 时间:
2016-09-03 23:57:52
阅读次数:
436
从一个文件中查找某个关键字: cat 文件名 | grep '关键字' linux vi查找:/ 1、命令模式下输入“/字符串”,例如 / 关键字 2、如果查找下一个,按“n”即可 linux 查看文件显示行数 ::set nu 切换目录目录:cd 查看文件与目录:ls 查找:find find / ...
分类:
系统相关 时间:
2016-09-03 21:09:08
阅读次数:
207