链接: https://leetcode-cn.com/problems/implement-strstr/
题面
解法
动态规划 区间dp 时间复杂度O(n^2)
Manacher算法 比较复杂 时间复杂度O(n)
代码
dp
| 1 | class Solution { | 
Manacher’s Algorithm
| 1 | class Solution { | 
但问耕耘,莫问收获
链接: https://leetcode-cn.com/problems/implement-strstr/
动态规划 区间dp 时间复杂度O(n^2)
Manacher算法 比较复杂 时间复杂度O(n)
| 1 | class Solution { | 
| 1 | class Solution { |