6 kyu
Hardcore anagram difference
169kingcobra
Description:
Given a set of words, how many letters do you have to remove from them to make them anagrams?
Example
You are given the set of words {'hello', 'hola', 'allo'}
. To obtain anagrams, you have to remove 3 letters from 'hello' (the letters 'hel'), 2 letters from 'hola' (the letters 'ha'), and 2 letters from 'allo' ('al'), therefore the result is 7 (the anagram is 'lo', or 'ol' since order doesn't matter).
Hints
- A word is an anagram of another word if they have the same letters (usually in a different order).
- Do not worry about case. All inputs will be lowercase.
You may want to check out this kata's little brother (or sister) : https://www.codewars.com/kata/anagram-difference
Strings
Algorithms
Similar Kata:
Stats:
Created | Jun 9, 2018 |
Published | Jun 9, 2018 |
Warriors Trained | 575 |
Total Skips | 9 |
Total Code Submissions | 680 |
Total Times Completed | 169 |
Python Completions | 169 |
Total Stars | 27 |
% of votes with a positive feedback rating | 95% of 65 |
Total "Very Satisfied" Votes | 59 |
Total "Somewhat Satisfied" Votes | 6 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 3 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |