HTMLify
LeetCode - Find the Encrypted String - Python
Views: 324 | Author: abh
1 2 3 | class Solution: def getEncryptedString(self, s: str, k: int) -> str: return "".join([s[(i+k)%len(s)] for i in range(len(s))]) |