最新文章列表

Longest Palindromic Substring(最长回文子串)

Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 题目的要求是给定一个字符串,找到一个最长的回文子串 ...
KickCode 评论(0) 有826人浏览 2016-01-24 08:02

manacher算法

const int LEN=110005; const int N=LEN*2; int p[N]; char str[LEN], tmp[N]; //p[i]表示以str[i]为中心的回文往右延伸的 最长长度 void manacher(char* str, int* p){ int n=strlen(str), i, id, mx; for(p[mx=id=0]=i=1; ...
goAheadtw 评论(0) 有2412人浏览 2011-11-11 00:06

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics