How to Write a Message
One day, you decided to write a message to your girl friend consisting of N uppercase English letters. Your girlfriend's alphabet is limited to only two letters: 'A' and 'B'. She recognizes only the words that are of length M containing letters from her alphabet. There are some words that your girlfriend hates. You are given two strings X and Y, which represent some two words she recognizes. Yo
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