← All problemsSign in

Decode the String

Deadshot , a secret undercover agent and a brilliant coder is on a secret mission to Chefland. He communicates with his officials using letters which contain a string $S$ and an integer key $K$. To decode the string $S$ he just takes every letter of the string and replaces it with its kth lexicographic descendant. For example if the letter is 'a' and $K=2$, 'a' will be replaced by 'c'. As Deadsho

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start