1.安装1.1安装mmseg./bootstrap # 必须执行,不然安装会失败./configure --prefix=/usr/local/mmseg-3.2.14 #指定安装目录makemake install1.2安装coreseek# 在csft-4.1/configure.ac中# 查找...
分类:
其他好文 时间:
2015-02-24 12:33:23
阅读次数:
190
Write a function to find the longest common prefix string amongst an array of strings.思路分析:这题很简单,基本就是以第一个字符串为标准,同时扫描后面的字符串对应index 字符是否相同,找到最大的相同前缀。但是实现的时候还是要注意一些corner case,比如输入数组为空或者只包含一个字符串的情况。AC Co...
分类:
其他好文 时间:
2015-02-23 12:02:19
阅读次数:
145
1、下载解压php,configtarzxvfphp-xxxx
./configure--prefix=/usr/local/php--with-mysql=/usr/local/mysql--with-openssl--with-mysqlli=/usr/local/mysql/bin/mysql_config##php与mysql连接需要##--enable-mbstring##支持其他字符##--with-freetype-dir##字体库##--with-jpe..
分类:
Web程序 时间:
2015-02-23 00:19:24
阅读次数:
291
用Dp的思想解决了这道题目,也就是所谓的暴力= =题意:给出一个集合,一个字符串,找出这个字符串的最长前缀,使得前缀可以划分为这个集合中的元素(集合中的元素可以不全部使用)。还不会Trie 树QAQSource Code:/*ID: wushuai2PROG: prefixLANG: C++*///...
分类:
其他好文 时间:
2015-02-21 14:14:36
阅读次数:
116
一、安装一些下来要用到的包!1、安装OpenSSLtar zxvf openssl-0.9.8e.tar.gzcd openssl-0.9.8e./config --prefix=/usr/local/openssl sharedmakemake install修改(此步骤非常重要,至少对于现有的软...
分类:
其他好文 时间:
2015-02-20 22:01:28
阅读次数:
276
UVALive - 3026
Period
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
For each prefix of a given string S wit...
分类:
其他好文 时间:
2015-02-20 09:45:52
阅读次数:
139
1、cd /mnttar zxvf httpd-2.4.10.tar.gz ./configure --prefix=/mnt/apache2 --enable-dav --enable-modules=soAPR version 1.4.0 or later is required, found ...
分类:
Web程序 时间:
2015-02-18 09:26:20
阅读次数:
241
KMP算法Next[]函数深入理解,Next[]当前字符前匹配字符数,串长n-Next[i]=串内循环子串的长度p。本题求子循环串内循环节数。Problem DescriptionFor each prefix of a given string S with N characters (each ...
分类:
其他好文 时间:
2015-02-15 16:25:23
阅读次数:
137
接上篇,如果编译安装snort并指定了prefix,那么须指定一个软链接,不然每次要用绝对路径,才可以使用。[root@localhost ~]# ln -s /root/snort/st/bin/snort /bin/snort[root@localhost ~]# snort -V ,,_ -*...
分类:
其他好文 时间:
2015-02-15 16:22:00
阅读次数:
206
https://oj.leetcode.com/problems/longest-common-prefix/Write a function to find the longest common prefix string amongst an array of strings.解题思路:这题属于...
分类:
其他好文 时间:
2015-02-13 14:33:08
阅读次数:
172