摘要: 有这样一种题,求一个字符串的最长回文子串的长度。hdu 3608就是求最长回文子串的一道题有这样几种解法1.暴力法枚举所有子串且每次判断该子串是否是回文子串,时间复杂度是n3,理所当然的T掉。#include#include#includeusing namespace std;const int ... 阅读全文
posted @ 2015-12-24 16:52 icodefive 阅读(556) 评论(0) 推荐(0) 编辑