会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hellozhangjz
博客园
首页
新随笔
管理
2022年4月23日
(模板)Manacher算法:线性时间求字符串内回文子串的数量
摘要: 已通过leetcode647:https://leetcode-cn.com/problems/palindromic-substrings/ void get_d(vector<int> & d, const string & s) { //l r 为维护的最靠右的回文串边界 int n = s.
阅读全文
posted @ 2022-04-23 11:42 hellozhangjz
阅读(38)
评论(0)
推荐(0)
公告