题目:
Write a function to find the longest common prefix string amongst an array of strings.
题目大意:
写一个函数,求一个字符串数组中最长的公共前缀子串。
思路:
在做这道题之前先要了解一下什么叫做公共前缀子串。在英语中一个单词可以分为前缀、词根、后缀三部分,所谓前缀就是指在单词的开...
分类:
其他好文 时间:
2016-04-11 12:32:43
阅读次数:
128
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo ...
分类:
其他好文 时间:
2016-04-11 07:10:54
阅读次数:
133
Union-findUnion-findTable of Contents1. steps to develop a usable algorithm2. Model the problem3. Application4. interface specifications5. hints:6. so... ...
分类:
其他好文 时间:
2016-04-11 01:51:03
阅读次数:
239
locate非实时,模糊匹配,根据文件系统的数据库进行查找;updatedb:生动生成文件数据库,这个数据库会在每天固定的时间自动生成,也可以用此命令手动生成。/var/lib/mlocate/mlocate.dbyuminstall-ymlocatelocate命令其实是find-name的另一种写法whereiswhereis命令只能用于程..
分类:
其他好文 时间:
2016-04-10 19:47:24
阅读次数:
171
1:检查系统是否安装有mysql,执行“rpm -qa|grep -i mysql”和“find / -name -mysql.sock” 2:删除命令“rpm -ev mysql-libs-5.1.71-1.el6.x86_64”。如果删除不成功则用到参数: 重复安装了类包: --allmatch ...
分类:
数据库 时间:
2016-04-10 16:26:03
阅读次数:
179
一、文件搜索命令 ·which 显示系统命令所在目录 which [命令名] ·whereis 同上 ·find 查找文件或目录(这个命令挺占资源的尽量放在晚上,网站访问量小的) find [搜索路径] [搜索关键字] -name 根据文件名来查找 * 匹配任意字符串 find \etc -name ...
分类:
系统相关 时间:
2016-04-10 16:16:46
阅读次数:
221
Problem Description
Given a positive integer n, find the positions of all 1’s in its binary representation. The position of the least significant bit is 0.ExampleThe positions of 1’s in the binary rep...
分类:
其他好文 时间:
2016-04-10 14:57:38
阅读次数:
123
安装
下载并安装opencv for windows
安装selenium:pip install selenium
测试用图片代码
find_obj.py
#!/usr/bin/env python'''
Feature-based image matching sample.USAGE
find_obj.py [--feature=[-flann]] [ <im...
分类:
编程语言 时间:
2016-04-10 14:43:56
阅读次数:
505
104. Maximum Depth of Binary Tree Total Accepted: 136537 Total Submissions: 286367 Difficulty: Easy Given a binary tree, find its maximum depth. The m ...
分类:
其他好文 时间:
2016-04-10 12:50:26
阅读次数:
146
Vim相当于vi的升级版 Find p*.txt支持查找通配符 Echo 回显命令 echo hello 》1.txt 追加命令,不覆盖 echo hello >1.txt 覆盖命令 帮助命令:ls --help cd --help ...
分类:
系统相关 时间:
2016-04-09 23:39:44
阅读次数:
227