for循环: 批量删除.gz结尾的文件: 循环打包文件并备份到一个目录下面: find ./ -maxdepth 1 -name "*.gz" find ./ -maxdepth 1 -d -name "*.gz" 批量传输文件: while循环语法: 条件不满足就退出 [root@linux1 s ...
分类:
系统相关 时间:
2016-10-05 10:44:58
阅读次数:
191
First Missing Positive Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] ret ...
分类:
其他好文 时间:
2016-10-05 07:13:29
阅读次数:
149
Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. ...
分类:
其他好文 时间:
2016-10-04 09:52:29
阅读次数:
215
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:
其他好文 时间:
2016-10-04 01:33:54
阅读次数:
136
英语原版 You say that you love rain, but you open your umbrella when it rains... You say that you love the sun, but you find a shadow spot when the sun sh ...
分类:
其他好文 时间:
2016-10-03 16:45:14
阅读次数:
120
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the lo ...
分类:
其他好文 时间:
2016-10-03 12:46:25
阅读次数:
94
df-h#查看下空间满了吗df-li#查看下inode(文件索引节点)是不是满了#inodes占用100%的话,就删除/tmp下的文件cd/tmpfind/tmp-typef-execrm{}\;#如果使用rm*,有可能因为文件数量太多而出现Argumentlisttoolong错误find/home-typef-size0-execrm{}\;#0字节的文件也会占用inode
分类:
数据库 时间:
2016-10-03 00:44:32
阅读次数:
514
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime comple ...
分类:
其他好文 时间:
2016-10-03 00:11:18
阅读次数:
196
#include<iostream>#include<string>using namespace std;int main(){ string str; while(true) { getline(cin, str); if(cin.eof()) break; int index; while(t ...
分类:
其他好文 时间:
2016-10-02 22:01:38
阅读次数:
226
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in ...
分类:
其他好文 时间:
2016-10-02 21:59:11
阅读次数:
175