mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 03:27:07 +00:00
Time: 208 ms (53.32%), Space: 18.4 MB (80.78%) - LeetHub
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
class Solution:
|
||||||
|
def reverseString(self, s: List[str]) -> None:
|
||||||
|
"""
|
||||||
|
Do not return anything, modify s in-place instead.
|
||||||
|
"""
|
||||||
|
for i in range(int(len(s) / 2)):
|
||||||
|
s[i], s[-i - 1] = s[-i - 1], s[i]
|
||||||
|
|
||||||
Reference in New Issue
Block a user