Open yeonghwanjeon opened 5 years ago
class Solution(object): def reverseString(self, s): """ :type s: List[str] :rtype: void Do not return anything, modify s in-place instead. """ str_len = len(s) for i, c in enumerate(s[:(str_len/2)]) : s[i], s[str_len - 1 - i] = s[str_len - 1 - i], s[i]