← All problemsSign in

Romil and keyboard

Problem Description Romil is an extensive gamer. He like to play computer games based on strings . Today , while playing his favourite game(as always), he experiences abnormal behaviour from keyboard. He discovers that his keyboard is printing next lexicographic character of typed character. If Romil type ‘a’ , ‘b’ gets printed and similarly for other characters till ‘y’. for character ‘z’, ‘a’

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