B - No story in this one
CodeChefOpen on judge ↗
Given two strings $S_1$ and $S_2$ , both of same length. Each index $i$ of $S_1$ has a type $t_i$ , and swapping characters between two indices of same type is allowed in $S_1$. Print "Yes" if you can convert $S_1$ to $S_2$ after any number of valid swaps, otherwise print "No"; ###Input: - First line will contain $T$, number of testcases. Then the testcases follow. - First line of each testcas
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