1# Runtime: 92 ms (Top 5.11%) | Memory: 14.1 MB (Top 58.38%)2class Solution:3 def reverseStr(self, s: str, k: int) -> str:4 a = list(s)5 for i in range(0, len(a), 2 * k):6 a[i : i + k] = a[i : i + k][::-1]7 print(a)8 return "".join(a)
WPM •0 •0
ACC •0 •0
TIME •0