← All problemsSign in

Mirror Trouble

Berlin and Professor were trying to crack a code for a bank. That bank had a very unique way of setting the password to their vaults. The password is kept such that it is identical to its mirror image. Now checking for all such words one by one in front of a mirror is a very tiring process, so Professor and Berlin want some help from a coder like you to automize the process. You will be given a s

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