leetcode
This commit is contained in:
7
leetcode/344.py
Normal file
7
leetcode/344.py
Normal file
@@ -0,0 +1,7 @@
|
||||
class Solution:
|
||||
def reverseString(self, s: List[str]) -> None:
|
||||
"""
|
||||
Do not return anything, modify s in-place instead.
|
||||
"""
|
||||
for i in range(len(s)//2):
|
||||
s[i],s[-i-1]=s[-i-1],s[i]
|
||||
Reference in New Issue
Block a user