Setter: Debjit Datta
Tester: Debjit Datta
Modular arithmetic, string
Given a String and an integer with which we need to decrypt the encrypted string, we need to
decrypt the string.
We traverse through the string and for each character, we first find out the index of the
character(i.e distance form ‘a’) and then add n to the index. Then we do modular operation by
26 and then store the decrypted character in the result string.
O(m) where m is the size of string
Author’s solution is here