mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 23:07:08 +00:00
8 lines
249 B
Python
8 lines
249 B
Python
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]
|
|
|