We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6947b60 commit 88bc8ffCopy full SHA for 88bc8ff
problems/125.valid-palindrome.md
@@ -26,6 +26,13 @@ Output: false
26
- 回文
27
- 双指针
28
29
+## 公司
30
+
31
+- facebook
32
+- microsoft
33
+- uber
34
+- zenefits
35
36
## 思路
37
38
这是一道考察回文的题目,而且是最简单的形式,即判断一个字符串是否是回文。
@@ -150,3 +157,15 @@ class Solution:
150
157
s = ''.join(i for i in s if i.isalnum()).lower()
151
158
return s == s[::-1]
152
159
```
160
161
+**复杂度分析**
162
+- 时间复杂度:$O(N)$
163
+- 空间复杂度:$O(1)$
164
165
+更多题解可以访问我的LeetCode题解仓库:https://github.com/azl397985856/leetcode 。 目前已经35K star啦。
166
167
+关注公众号力扣加加,努力用清晰直白的语言还原解题思路,并且有大量图解,手把手教你识别套路,高效刷题。
168
169
170
+
171
0 commit comments