Easy Python Solution(97.20%)
Runtime: 24 ms, faster than 97.20% of Python3 online submissions for Reverse String II.\nMemory Usage: 14.5 MB, less than 43.20% of Python3 online submissions f
Runtime: 24 ms, faster than 97.20% of Python3 online submissions for Reverse String II.\nMemory Usage: 14.5 MB, less than 43.20% of Python3 online submissions for Reverse String II.\n```\nclass Solution:\n    def reverseStr(self, s: str, k: int) -> str:\n        s=list(s)\n        for i in range(0,len(s),2*k):\n            # print(s[i:i+k:-1])\n            s[i:i+k]=reversed(s[i:i+k])\n        return "".join(s)
['Python', 'Python3']