Skip to content

Commit 53ccafb

Browse files
Merge pull request #2895 from RomanGirin/main-1
Update 0344-reverse-string.py. There is no need to use less-or-equal
2 parents 4a1e7e5 + e96dac7 commit 53ccafb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/0344-reverse-string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def reverseString(self, s: List[str]) -> None:
55
"""
66
l = 0
77
r = len(s) - 1
8-
while l <= r:
8+
while l < r:
99
s[l],s[r] = s[r],s[l]
1010
l += 1
1111
r -= 1

0 commit comments

Comments
 (0)