1. How I sloved
I had to reverse the string. So I just used ‘reverse()’ to do it.
2. Code
class Solution:
def reverseString(self, s: List[str]) -> None:
s.reverse()
3. Result
Runtime : 180 ms(99.17%), Memory usage : 18.4 MB(5.43%)
(Runtime can be different by a system even if it is a same code.)