码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
[leedcode 41] First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2015-07-10 18:48:28    阅读次数:80
EXCEL处理数据小技巧
1、EXCEL 中如何获得4*8这个数字中,*号前面的数字输入 =LEFT(AC2,FIND("*",AC2)-1)获得*右边的数字输入 =RIGHT(AC2,FIND("×",AC2)-1)2、获取前面19891019中前面4个数字输入=left(AC2,4)中间两个输入=mid(AC2,5,2)
分类:其他好文   时间:2015-07-10 18:44:30    阅读次数:79
备份数据库,保留15天的备份
备份数据库mysqldump-uroot-p12345-S/var/lib/mysql3307/mysql.socktest>/home/backup/test.${DATE}.sql只保留15天备份videlsqlbut15day.shcd/home/backupoldDate=$(date-d"14dayago""+%y%m%d")#保存的天数减1,目前保存15天foriin`find.-maxdepth1-typef|grep\.sql$`;do#匹..
分类:数据库   时间:2015-07-10 16:57:03    阅读次数:145
STL常用查找算法介绍
adjacent_find() 在iterator对标识元素范围内,查找一对相邻重复元素,找到则返回指向这对元素的第一个元素的迭代器。否则返回past-the-end。 #include #include #include #include using namespace std; void play_adjacent_find() { vector v1; v1.pu...
分类:编程语言   时间:2015-07-10 16:46:50    阅读次数:157
C++ Primer(第五版)学习笔记_5_标准模板库string(2)
C++ Primer(第五版)学习笔记_5_标准模板库string(2) 10、搜索string对象的元素或子串 采用find()方法可查找字符串中的第一个字符元素(char, 用单引号界定)或者子串(用双引号界定);如果查到,则返回下标值(从0开始计数),如果查不到,则返回一个很大的数string:npos(即:4294967295)。 #include #include #inc...
分类:编程语言   时间:2015-07-10 16:45:49    阅读次数:129
python核心编程第六章练习6-12
6-12.字符串。(a)创建一个名字为findchr()的函数,函数声明如下。def findchr(string, char)findchr()要在字符串string中查找字符char,找到就返回该值得索引,否则返回-1。不能用string.*find()或者string.*index()函数和方...
分类:编程语言   时间:2015-07-10 16:35:35    阅读次数:114
linux查找符合条件的文件并删除
找到根目录下所有的以test开头的文件并把查找结果当做参数传给rm -rf命令进行删除:find / -name “test*” |xargs rm -rf 如果想指定递归深度,可以这样:find / -maxdepth 3 -name “*.mp3” |xargs rm -rf,这样只会查找三层目录中符合条件的文件并删除掉! linux的find命令太强大了,继续研究中……………………….....
分类:系统相关   时间:2015-07-10 15:22:40    阅读次数:160
Leetcode & CTCI ---Day 1
Maximum Depth of Binary Tree (DFS, TREE)Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path fr...
分类:其他好文   时间:2015-07-10 13:17:22    阅读次数:99
select保留选中option
1 $("#bankAreaCode").val(areacode);2 var _option =$("#bankAreaCode").find("option:selected");3 $("#bankAreaCode")....
分类:其他好文   时间:2015-07-10 12:49:38    阅读次数:84
cannot find the word template:WordToRqm.dot的解决方法
powerdesigner安装后:C:"Program Files"Sybase"PowerDesigner 12"Add-ins"Microsoft Word Import Export下的 WordToRqm.dot自动加载到word Normal.dot中,还死活去不掉。只能采取注册表隐含了:...
分类:其他好文   时间:2015-07-10 12:44:16    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!