Skip to content

Commit bbbed42

Browse files
authored
Update reverse-string.py
1 parent eccd7cf commit bbbed42

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Python/reverse-string.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
class Solution(object):
55
def reverseString(self, s):
66
"""
7-
:type s: str
8-
:rtype: str
7+
:type s: List[str]
8+
:rtype: None Do not return anything, modify s in-place instead.
99
"""
1010
i, j = 0, len(s) - 1
1111
while i < j:
1212
s[i], s[j] = s[j], s[i]
1313
i += 1
1414
j -= 1
15-
return s
16-

0 commit comments

Comments
 (0)