Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite185615

Browse files
authored
feat: update 005
1 parentb2bd0a2 commite185615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎note/005/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Solution {
111111

112112
这个问题等同于LeetCode上的[Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring),其相关题解可以查看这里:[传送门](https://github.com/Blankj/awesome-java-leetcode/blob/master/note/005/README.md)
113113

114-
以上问题的传统思路大概是遍历每一个字符,以该字符为中心向两边查找,其时间复杂度为`O(n2)`,效率很差。
114+
以上问题的传统思路大概是遍历每一个字符,以该字符为中心向两边查找,其时间复杂度为`O(n^2)`,效率很差。
115115

116116
1975年,一个叫 Manacher 的人发明了 Manacher 算法(中文名:马拉车算法),该算法可以把时间复杂度提升到`O(n)`,下面我以我理解的思路来讲解其原理。
117117

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp