Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite96dac7

Browse files
authored
Update 0344-reverse-string.py. There is no need to use less-or-equal condition, substitute it with just 'less' condition.
1 parente3ed4a6 commite96dac7

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-
whilel<=r:
8+
whilel<r:
99
s[l],s[r]=s[r],s[l]
1010
l+=1
1111
r-=1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp