HTMLify

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

Comments