mirror of
https://github.com/labuladong/fucking-algorithm.git
synced 2025-07-05 03:36:39 +08:00
The Longest Palindromic Substring.md
typos
This commit is contained in:
@ -4,7 +4,7 @@ Translator: [Lrc123](https://github.com/Lrc123)
|
||||
|
||||
# How to find **The Longest Palindromic Substring**
|
||||
|
||||
Palindromic questions are very common in the interview, this article provides some insights about palindromic problem.
|
||||
Palindrome questions are very common in the interview, this article provides some insights about palindromic problem.
|
||||
|
||||
To specific :
|
||||
> A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar.
|
||||
@ -103,7 +103,9 @@ string longestPalindrome(string s) {
|
||||
|
||||
|
||||
Thus, this leetcode problem is solved. Now, we get:
|
||||
|
||||
Time complexity: O(N^2)
|
||||
|
||||
Space complexity: O(1)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user