21FA - 01 Porcos Mysterious Call
CodeChefOpen on judge ↗
Porco the Porcupine hears something on his walkie-talkie! It sounds like a bunch of letters. At the end of the message, the walkie talkie announces that the last $k$ letters are reversed. Porco is determined to decipher the message from his walkie talkie, whoever it is from. He has all the letters but now needs to reverse the last $k$ letters to figure out the message. Help Porco come up with an 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.
Sign in to chat with the tutor and save your progress.
Sign in to start