码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
exec命令
exec 命令实例find . -name "*.cc" -exec grep -P -n -H --color=auto "[^\w]main[^\w]" {} \;-P perl正则查找-n 显示行号-H 显示文件名--color=auto 关键字高亮显示[^\w]main[^\w] main关...
分类:其他好文   时间:2014-07-15 09:32:46    阅读次数:244
[leetcode]3Sum
3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El...
分类:其他好文   时间:2014-07-15 08:51:50    阅读次数:231
UVa10608
FRIENDS题意:找出最大的朋友圈#include #define N 30005int fa[N], ans[N];int find(int x){ return fa[x] == x ? x : fa[x] = find(fa[x]);}int main(int argc, char *...
分类:其他好文   时间:2014-07-15 08:48:35    阅读次数:214
[leetcode]Two Sum
Two SumGiven 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...
分类:其他好文   时间:2014-07-15 08:45:17    阅读次数:236
Some Classical Recursive Functions
Some Classical Recursive FunctionsSome Classical Recursive FunctionsTable of Contents1. Find the maximum element of an array recursively.In this post,...
分类:其他好文   时间:2014-07-13 21:18:30    阅读次数:200
ES6对数组的扩展
ECMAScript6对数组进行了扩展,为数组Array构造函数添加了from()、of()等静态方法,也为数组实例添加了find()、findIndex()等方法。下面一起来看一下这些方法的用法。Array.from()Array.from()将类数组(array-like)对象与可遍历的对象转化...
分类:其他好文   时间:2014-07-13 20:33:59    阅读次数:247
G - Specialized Four-Digit Numbers(1.5.2)
Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Find and list all four-digit numbers in decimal notation that have the property ...
分类:其他好文   时间:2014-07-13 18:17:24    阅读次数:198
poj 1426 Find The Multiple
题意为求出只由0,1组成的并且是所给数倍数的数, 广搜。。 因为首位不能为0,因此必为1;所以搜索的下一层为上一层的10倍和10倍加1; #include #include #include using namespace std; __int64 s[9999999]; __int64 r; void show(int q) { int i,j; s[0]=1; j=0; i=0;...
分类:其他好文   时间:2014-07-13 16:36:40    阅读次数:172
LeetCode——Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [...
分类:其他好文   时间:2014-07-13 16:01:42    阅读次数:209
Linux文本处理---文本查找
文件查找所谓的文件查找时根据文件的各种属性在特定的路径下找到对应文件的过程。一、文件查找的方式实时查找:遍历所有文件进行条件匹配。查找精确,但是速度慢。这种查找通过find命令来实现。非实时查找:根据索引进行查找。查找速度快,但是查找不精确。这种查找locate命令..
分类:系统相关   时间:2014-07-13 15:21:01    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!