← All problemsSign in

Clever Berlin

Berlin got bored and decided to solve a puzzle. He has two strings $A$ and $B$ of uppercase alphabets and he has to check whether the two strings are made of same alphabets or not. He solved the puzzle within seconds and now he challenged you to program a solution in your favorite language. Output `YES` if they are made of same alphabets else `NO`. Note that the strings may have different

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