String Relation
CodeChefOpen on judge ↗
There are two strings s1 and s2. There exists a relation between s1 and s2. For ex- if s1 is AGH then s2 will be BHI. We can clearly see that B comes after A, H comes after G and I comes after H. Find s2 with the help of s1 following the same relation. Input: The first line contains an integer T --- the number of test cases. The first line of each test case consists of length of string
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