后缀数组应用2: 最长回文字串
摘要:
算法:把字符串逆序拼接在第一个字符串后面,然后就是求最长公共前缀。。#include<stdio.h>#include<stdlib.h>#include<string.h>#include<iostream>#include<vector>#include<string>#include<math.h>#include<map>#include<set>#include<algorithm>using namespace std;#define MAXN 10010int 阅读全文
posted @ 2012-09-26 16:13 more think, more gains 阅读(201) 评论(0) 推荐(0) 编辑