def caesarCipherEncryptor(string, key):
return ''.join([chr((ord(c)-97+key)%26+97) for c in string])
'Algorithms and Data Structures > Coding Practices' 카테고리의 다른 글
AlgoExpert Generate Document (0) | 2022.07.19 |
---|---|
AlgoExpert Selection Sort (0) | 2022.07.19 |
AlgoExpert Run-Length Encoding (0) | 2022.07.19 |
AlgoExpert First Non-Repeating Character (0) | 2022.07.17 |
LeetCode 1029. Two City Scheduling (0) | 2022.07.17 |