3210. Find the Encrypted String
You are given a string
s
and an integerk
. Encrypt the string using the following algorithm:
- For each character
c
ins
, replacec
with thekth
character afterc
in the string (in a cyclic manner).Return the encrypted string.
1 | class Solution { |