7 kyu
Unique Anagrams
Description:
You will be given a list of words that are anagrams of each other. Your task is to find a unique anagram using the same letters - i.e. your result must be different to each word in the list.
Your result can be any valid answer, i.e. if there is more than one possible unused anagram, you may choose any of them to return.
If there is no valid answer, return an empty string.
Samples
INPUT => OUTPUT
abcd, dbac, cbad => dbca
12 => 21
codewars, srawedoc => edocraws
123, 132, 213, 231, 321, 312 => (empty string)
Strings
Permutations
Algorithms
Similar Kata:
Stats:
Created | Nov 14, 2017 |
Published | Nov 14, 2017 |
Warriors Trained | 286 |
Total Skips | 5 |
Total Code Submissions | 387 |
Total Times Completed | 93 |
Ruby Completions | 93 |
Total Stars | 8 |
% of votes with a positive feedback rating | 84% of 47 |
Total "Very Satisfied" Votes | 34 |
Total "Somewhat Satisfied" Votes | 11 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 4 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |