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 02c4f08 commit 9cb62dbCopy full SHA for 9cb62db
1 file changed
strings/palindrome.py
@@ -25,12 +25,7 @@ def is_palindrome(s: str) -> bool:
25
:param s: input string
26
:return: True if palindrome, False otherwise
27
"""
28
- Return True if s is a palindrome otherwise return False.
29
-
30
- >>> all(is_palindrome(key) is value for key, value in test_data.items())
31
- True
32
- """
33
+
34
start_i = 0
35
end_i = len(s) - 1
36
while start_i < end_i:
0 commit comments