← All problemsSign in

Batman Needs Help

Batman loves Gotham city and its people. Somehow Joker is able to design a bomb working on two strings a and b each of length n consisting of digits 1 and 2. The only way to defuse bomb is by making both strings good. Bat-Computer can detect if a string x (also containing only digits 1 and 2 and with length N) is good or not by performing the following actions. - It starts at first digit of the

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