Given two strings S1 and S2 consisting of only lowercase characters whose anagrams are almost equal. The task is to count the number of characters which needs to be edited(delete) to make S1 equal to S2.
For each testcase, first line of input contains number of testcase T. For each testcase, there will be two lines containing string S1 and S2.
For each testcase, print the count of characters needed to delete to make S1 and S2 equal.
1 <= T <= 100
1 <= S1, S2 <= 104
Testcase 1: String S1 = madame, string S2 = madam. character 'e' in first string needs to be deleted to make S1 equal to S2.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.