Skip to content

Commit f72fa4d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings/palindrome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def is_palindrome_traversal(s: str) -> bool:
4242
end = len(s) // 2
4343
n = len(s)
4444

45-
4645
return all(s[i] == s[n - i - 1] for i in range(end))
4746

47+
4848
def is_palindrome_recursive(s: str) -> bool:
4949
"""
5050
Return True if s is a palindrome otherwise return False.

0 commit comments

Comments
 (0)