Message secrecy
CodeChefOpen on judge ↗
The Army Headquarters of the northern command had confidential message to be sent to the headquarters of the southern base. They devised an algorithm to encrypt the message. The message was encrypted using the following algorithm: After every word, there is a number X associated with it, which is less than the length of the word. First, the string before position X is reversed. Then, the Z-trans
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