×

RAMCRYPT - Editorial

Setter: Debjit Datta

Tester: Debjit Datta

Cakewalk

Prerequisites:

Modular arithmetic, string

Explanation:

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.

Time complexity:

O(m) where m is the size of string

Author’s and Tester’s Solution:

Author’s solution is here

This question is marked "community wiki".

534
accept rate: 0%

 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×644
×128
×12

question asked: 02 Apr '18, 23:01

question was seen: 124 times

last updated: 02 Apr '18, 23:04