STRING CONVERSION
CodeChefOpen on judge ↗
Lucy loves to play with string. She has a string $S1$. She wants to convert her string into the string $S2$. She can do so only when the length of strings is similar. Determine whether it is possible to convert the string. Find the minimum number of the steps required to do the same if it is possible otherwise $ -1$. ###Input: • The first line of the input contains a single integer $T$ denotin
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