← All problemsSign in

Locked String

You are given Two string $S$ and $T$. You have to make string equals. You can swap two character in string $S$, but there is some locked index in string $S$. You cannot use locked index in you swap. Can you make two string equal. ###Input: - First line of input is number of testcases $t$ $(1 \le t \le 10)$. - First line of each testcase contain two integer $n$ and $m$ length of stri

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