Skip to content

Commit 40283ad

Browse files
authored
Update Valid Palindrome - Leetcode 125.py
1 parent 85770e4 commit 40283ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Valid Palindrome - Leetcode 125.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ def isPalindrome(self, s: str) -> bool:
2020
R -= 1
2121

2222
return True
23+
24+
# Time Complexity: O(n)
25+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)