Skip to content

Commit 49f57d2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f6e7db6 commit 49f57d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

strings/palindrome.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def is_palindrome_traversal(s: str) -> bool:
5353
"""
5454
if not isinstance(s, str):
5555
raise TypeError("Input must be a string")
56-
56+
5757
end = len(s) // 2
5858
n = len(s)
5959

@@ -75,7 +75,7 @@ def is_palindrome_recursive(s: str) -> bool:
7575
"""
7676
if not isinstance(s, str):
7777
raise TypeError("Input must be a string")
78-
78+
7979
if len(s) <= 1:
8080
return True
8181
if s[0] == s[len(s) - 1]:

0 commit comments

Comments
 (0)