2024/09/231 leetcode 3210. Find the Encrypted String https://leetcode.com/problems/find-the-encrypted-string/description/12345678class Solution: def getEncryptedString(self, s: str, k: int) -> str: answer = "" for i in range(len(s)): answer += s[(i+k)%len(s)] return answerColored by Color Scriptercs문자열 s 를 rotate 하는 느낌으로 구현 2024. 9. 23. 이전 1 다음