码迷,mamicode.com
首页 >  
搜索关键字:find mtime    ( 24581个结果
在linux系统中,如何使用【find】命令精确查找文件?
【find】是文件查找工具,它会遍历指定目录下所有文件的,所以使用该命令,查找文件的速度比较慢。但是它能够文件类根据型、文件的各做为条查件,找显示符合条件的文件目录。一、既然,【find】是根据文件的特点来查看文种属性件的。那么先了解,文件有啥特点。1、文件特点有很..
分类:系统相关   时间:2014-07-28 00:33:20    阅读次数:551
POJ - 3249 Test for Job (DAG+topsort)
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
Automatic Editing UVA 10115
#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 Line
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
查找目录下的所有文件中是否含有某个字符串 linux
查找目录下的所有文件中是否含有某个字符串 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
Median of Two Sorted Arrays
题目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
并查集(uva10608)
一 基础知识梳理:并查集(Union-find Sets)是一种非常精巧而实用的数据结构,它主要用于处理一些不相交集合的合并问题。一些常见的用途有求连通子图、求最小生成树的 Kruskal 算法和求最近公共祖先(Least Common Ancestors, LCA)等。使用并查集时,首先会存在一组...
分类:其他好文   时间:2014-07-27 22:19:59    阅读次数:323
UVA 10608
并查集的水题,比赛时怎么都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
hdu 1598 find the most comfortable road
贪心+并查集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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!