All prompts are owned by LeetCode. To view the prompt, click the title link above.
Completed during Weekly Contest 405 (q1)
First completed : July 07, 2024
Last updated : July 07, 2024
Related Topics : String
Acceptance Rate : 68.41 %
class Solution:
def getEncryptedString(self, s: str, k: int) -> str:
k %= len(s)
return s[k:] + s[:k]