Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 12, 2026
commit 49f57d298fb14fc673407f15ee4fb7c96ccb714e
4 changes: 2 additions & 2 deletions strings/palindrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def is_palindrome_traversal(s: str) -> bool:
"""
if not isinstance(s, str):
raise TypeError("Input must be a string")

end = len(s) // 2
n = len(s)

Expand All @@ -75,7 +75,7 @@ def is_palindrome_recursive(s: str) -> bool:
"""
if not isinstance(s, str):
raise TypeError("Input must be a string")

if len(s) <= 1:
return True
if s[0] == s[len(s) - 1]:
Expand Down
Loading