HTMLify

LeetCode - Reverse String - Python
Views: 11 | Author: abh
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[len(s)-1-i] = s[len(s)-i-1], s[i]

Comments