[Solution] Equal Strings CodeChef Solution | CodeChef Problem Solution 2022
Given a string of length consisting of lowercase English alphabet letters.
You are allowed to perform the following operation on the string any number of times:
- Select a non-empty subsequence of the array and any lowercase English alphabet ;
- Change to for all .
Find the minimum number of operations required to convert into a given string of
Solution Click Below:- CLICK HERE
length consisting of lowercase English alphabet letters.
Input Format
- The first line of input contains a single integer , denoting the number of test cases. The description of test cases follow.
- The first line of each test case contains an integer - the length of the string and .
- The second line of each test case contains the string .
- The third line of each test case contains the string .
Output Format
For each test case, output the minimum number of operations required to convert string into string .
No comments:
Post a Comment