最长回文子串
Manacher简介
Manacher算法,又叫“马拉车”算法,可以在时间复杂度为O(n)的情况下求解一个字符串的最长回文子串长度的问题。
C++模板
1 | string Manacher(string s, int start, int end) { |
Manacher算法,又叫“马拉车”算法,可以在时间复杂度为O(n)的情况下求解一个字符串的最长回文子串长度的问题。
1 | string Manacher(string s, int start, int end) { |
原文作者:F_JustWei
原文链接:http://139.196.79.90/2021/04/21/%E6%9C%80%E9%95%BF%E5%9B%9E%E6%96%87%E5%AD%90%E4%B8%B2/
发表日期:April 21st 2021, 11:55:49 pm
更新日期:April 22nd 2021, 12:06:21 am
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true