【find】是文件查找工具,它会遍历指定目录下所有文件的,所以使用该命令,查找文件的速度比较慢。但是它能够文件类根据型、文件的各做为条查件,找显示符合条件的文件目录。一、既然,【find】是根据文件的特点来查看文种属性件的。那么先了解,文件有啥特点。1、文件特点有很..
分类:
系统相关 时间:
2014-07-28 00:33:20
阅读次数:
551
Description
Mr.Dog was fired by his company. In order to support his family, he must find a new job as soon as possible. Nowadays, It's hard to have a job, since there are swelling numbers of the...
分类:
其他好文 时间:
2014-07-27 23:57:39
阅读次数:
630
#include
#include
#define MAXL 225+5
#define MAXN 10+5
char find[MAXN][MAXL],replace[MAXN][MAXL];
char text[MAXL],convert[MAXL];
int Find(int,int*);
void Replace(int,int);
int str_cmp(int,int);
i...
分类:
其他好文 时间:
2014-07-27 23:55:20
阅读次数:
273
LeetCode: Max Points on a LineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.地址:https://oj.leetcod...
分类:
其他好文 时间:
2014-07-27 23:22:59
阅读次数:
289
查找目录下的所有文件中是否含有某个字符串 find .|xargs grep -ri "IBM" 查找目录下的所有文件中是否含有某个字符串,并且只打印出文件名 find .|xargs grep -ri "IBM" -l 1.正则表达式 (1)正则表达式一般用来描述文本模式的特殊用法,由普通字符(....
分类:
系统相关 时间:
2014-07-27 23:16:29
阅读次数:
410
题目:找出数组中出现次数超过一半的元素解法:每次删除数组中两个不同的元素,删除后,要查找的那个元素的个数仍然超过删除后的元素总数的一半#include int half_number(int a[], int n){ if( a == NULL || n void find(int a[], ...
分类:
其他好文 时间:
2014-07-27 23:09:29
阅读次数:
169
题目There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should b...
分类:
其他好文 时间:
2014-07-27 22:49:39
阅读次数:
176
一 基础知识梳理:并查集(Union-find Sets)是一种非常精巧而实用的数据结构,它主要用于处理一些不相交集合的合并问题。一些常见的用途有求连通子图、求最小生成树的 Kruskal 算法和求最近公共祖先(Least Common Ancestors, LCA)等。使用并查集时,首先会存在一组...
分类:
其他好文 时间:
2014-07-27 22:19:59
阅读次数:
323
并查集的水题,比赛时怎么都AC不了,后来发现是没有考虑先3 2 后1 2的情况,下次注意!#include#include#includeusing namespace std;int x[30010];int k[30010];int num[30010];int find(int y){ ...
分类:
其他好文 时间:
2014-07-27 22:18:59
阅读次数:
228
贪心+并查集fighting~~~~~!! 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 #define maxn 300 7 #define INF 0x3fffffff 8 int par[maxn]; ...
分类:
其他好文 时间:
2014-07-27 21:36:35
阅读次数:
182