6 kyu

Hardcore anagram difference

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

Stats:

CreatedJun 9, 2018
PublishedJun 9, 2018
Warriors Trained575
Total Skips9
Total Code Submissions680
Total Times Completed169
Python Completions169
Total Stars27
% of votes with a positive feedback rating95% of 65
Total "Very Satisfied" Votes59
Total "Somewhat Satisfied" Votes6
Total "Not Satisfied" Votes0
Total Rank Assessments3
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • kingcobra Avatar
  • raulbc777 Avatar
  • Madjosz Avatar
  • uttumuttu Avatar
Ad