题目链接 题目要求: Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.) ...
分类:
其他好文 时间:
2015-06-16 10:58:20
阅读次数:
197
#-*-coding=utf-8from selenium import webdriverimport os,timedriver= webdriver.Firefox()driver.get("http://www.baidu.com")#进入搜索设置页driver.find_element_b...
分类:
其他好文 时间:
2015-06-16 10:54:09
阅读次数:
110
使用中,遇到各种奇葩问题,依依汇总。1、引用了Subsonic层后,一运行就开始报错,提示未能找到文件!! //引用后,目标框架可能会被改变,subsonic的默认框架是2.0,请检查框架是否一致。2、执行中报异常,提示“Can't find the SubSonicService in your....
分类:
其他好文 时间:
2015-06-16 10:36:45
阅读次数:
134
查找文件,可以使用whereis、locate命令。实际排查问题时,查找特定时间变动过的文件,查找与给定文件有时间关系的文件就需要使用更加强大的查找命令find。whereis选项-b:查找二进制可执行文件-m:查找mamual文件-s:查找来源档案-u:查找非上述3个类型的其他文件locate配置文..
分类:
其他好文 时间:
2015-06-16 01:24:02
阅读次数:
157
M()函数,用来实例化一个要查询的对象,传入表面作为参数。查询的时候可带where()条件,where里可带一个数组作为查询条件,field()函数作为需要查询的字段,目前我用到的查询只有,select() save() find() count()。例子:$user=M('admin')->whe...
分类:
Web程序 时间:
2015-06-16 01:18:01
阅读次数:
449
简单的二分搜索,需要注意的是,二分搜索中,Left=Mid+1,Right=Mid-1;在这题中,需要特别注意的是判断语句:if(num[len-1] &num) { int len=num.size(); int Left,Right,Mid; Left=...
分类:
其他好文 时间:
2015-06-15 23:52:01
阅读次数:
153
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2015-06-15 23:41:38
阅读次数:
130
启动Tomact时报出严重警告:Setting property 'source' to 'org.ecplice.jst.jee.server:Clustering' did not find a matching property并报:failed to start conponent错误解决方...
分类:
系统相关 时间:
2015-06-15 22:00:46
阅读次数:
146
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:
编程语言 时间:
2015-06-15 18:34:55
阅读次数:
1218
find一些常用参数的一些常用实例和一些具体用法和注意事项。1.使用name选项:文 件名选项是find命令最常用的选项,要么单独使用该选项,要么和其他选项一起使用。可以使用某种文件名模式来匹配文件,记住要用引号将文件名模式引 起来。不管当前路径是什么,如果想要在自己的根目录$HOME中查找文件名符...
分类:
系统相关 时间:
2015-06-15 18:26:18
阅读次数:
192