码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
linux 查找文件或者内容常用命令
whereis <程序名称> find [路径] <表达式> locate <文件名称> 从文件内容查找匹配指定字符串的行: $ grep "被查找的字符串" 文件名 从文件内容查找与正则表达式匹配的行: $ grep –e “正则表达式” 文件名 查找时不区分大小写: $ grep –i "被查找 ...
分类:系统相关   时间:2016-11-16 02:20:31    阅读次数:166
selenium查找动态的iframe的name
WebElement frame1 = driver.findElement(By.xpath("/html/body/div[9]/div[2]/div/iframe"));driver.switchTo().frame("frame1"); 不能使用by.name,是动态显示的。 ...
分类:其他好文   时间:2016-11-15 23:52:12    阅读次数:364
kruskal
kruskal 时间复杂度 O(|E| * log|V|) 按权值顺序依次判断,如果不产生圈则放进去 时间主要用在边的排序 代码来自《挑战编程》 ...
分类:其他好文   时间:2016-11-15 23:12:40    阅读次数:157
golang解析mongodb中的ISODate类型
在golang中可以使用time.Time数据类型来保存mongodb中的ISODate时间。gtypeModelstruct{ uploadDatetime.Time`bson:"uploadDate"` } m:=Model{} iferr:=c.Find(nil).Select({"_id":0,"uploadDate":1}).One(&m);err!=nil{ fmt.Printf("failedtofinddate,error%s\n",err) os...
分类:数据库   时间:2016-11-15 21:13:25    阅读次数:261
[Leetcode + Lintcode] 441. Arranging Coins
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:其他好文   时间:2016-11-15 14:34:57    阅读次数:201
[Leetcode + Lintcode] 162. Find Peak Element
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde ...
分类:其他好文   时间:2016-11-15 13:24:58    阅读次数:178
implement "slam_karto" package on a Freight robot
1. login ssh fetch@<robot ip or robot name> 2. set robot master modify .bashrc in robot's computer using ssh export ROS_MASTER_URI=http://<robot ip or ...
分类:其他好文   时间:2016-11-15 10:46:45    阅读次数:186
UVa 11987 Almost Union-Find(支持删除操作的并查集)
传送门 Description I hope you know the beautiful Union-Find structure. In this problem, you’re to implement something similar, but not identical. The dat ...
分类:其他好文   时间:2016-11-15 01:04:22    阅读次数:162
POJ 1703 Find them, Catch them(带权并查集)
传送门 Find them, Catch them Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 42463 Accepted: 13065 Description The police office in Tadu City ...
分类:其他好文   时间:2016-11-15 01:03:04    阅读次数:225
【并查集&&带权并查集】BZOJ3296&&POJ1182
bzoj1529[POI2005]ska Piggy banks 【题目大意】 n头奶牛m种语言,每种奶牛分别掌握一些语言。问至少再让奶牛多学多少种语言,才能使得它们能够直接或间接交流? 【思路】 (n+m)个点,奶牛学会某种语言就合并它和语言的节点。并查集维护联通块,答案为联通块个数-1。水,可是 ...
分类:其他好文   时间:2016-11-15 00:41:18    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!