FWDNB

  • 详解Manacher算法

    一、基本介绍 Manacher算法,又称为马拉车算法(Manacher’s Algorithm),是一种用于在字符串中查找最长回文子串的算法,时间复杂度为O(n)。该算…

    编程 2025-01-20