Chef’s Birthday Gift
CodeChefOpen on judge ↗
Chef's birthday is coming soon, so Miu decided to gift him a set of 3 strings. The 3 strings are $A$, $B$ & $C$ all of length $N$ and all consisting of lowercase English alphabets. Chef likes the set of strings if all the strings can be made **equal** after performing the following operation **some amount of times**: - Select any two **adjacent** characters in $A$ and swap them. Then select any t
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