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 3c88735 commit a01cfd2Copy full SHA for a01cfd2
strings/palindrome.py
@@ -37,9 +37,8 @@ def is_palindrome(s: str) -> bool:
37
return True
38
39
40
-def is_palindrome_traversal(s: str) -> bool:
41
- """
42
- Return True if s is a palindrome otherwise return False.
+def is_palindrome(s: str) -> bool:
+ """Check whether a given string is a palindrome."""
43
44
>>> all(is_palindrome_traversal(key) is value for key, value in test_data.items())
45
True
0 commit comments