English
全部
搜索
图片
视频
地图
资讯
Copilot
更多
购物
航班
旅游
笔记本
Top stories
世界杯报道
Sports
U.S.
Local
World
Science
Technology
Entertainment
Business
More
Politics
时间不限
过去 1 小时
过去 24 小时
过去 7 天
过去 30 天
最新
最佳匹配
网易
7 年
[洛谷日报第80期]马拉车manacher算法
题意是求S中的最长回文串 最暴力的做法当然是枚举l和r,对于每个l和r求遍历一遍判断是否为回文 时间复杂度达到 O(n^3) ,显然做不了这题 在这个基础上稍微优化一下,也是很显然的做法:长度为奇数回文串以最中间字符的位置为对称轴左右对称,而长度为偶数 ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果
今日热点
Arrested in loan scheme
Stewart pauses Utah concert
LA mayor declares emergency
Restricts alcohol consumption
Man falls to death at MSG
Sánchez's wife to stand trial
Returns Poland’s top honor
FAA probes aborted landing
Honors first American saint
Fuel sales halted in Crimea
Trump alleges pool vandalism
Declares emergency in Bolivia
Hot air balloon crash
Douglass breaks 50m record
UT wildfire forces evacuation
Vance arrives in Switzerland
Plans Turkey, China trips
Plane crashes in Maryland
Chicago drive-by shooting
Threatens Iran over Lebanon
To play singles at Wimbledon
Wins 2nd US Open title
‘Toy Story 5’ tops box office
3 hikers die in Grand Canyon
1 killed in luxury resort fire
DOJ opens probe into MLB
Clark sets US Open record
Australia confirms H5 case
To Exit DeepMind for Anthropic
ISR continues Lebanon strikes
Ubisoft co-founder dies
Announces birth of 2nd child
Fastest to 1K rebounds
Titans ink Simmons' extension
世界杯报道
世界杯最新新闻
展开
反馈