Due 5pm PST Tuesday 3/29
For this homework you will submit as a fork of this gist
Create a Javascript function to find asociated anagrams in an input list of strings. For the input list, output every string (only once) that has an associated anagram elsewhere in the input list. See an example input and output below:
input_list = ['man', 'list', 'acme', 'talk', 'cat', 'beach', 'came', 'tac', 'naan', 'slit', 'act']
var anagram_finder = function(list) {
// WRITE SOLUTION HERE...
};
var output = anagram_finder(input_list);
console.log(output);
// => ['list', 'acme', 'slit', 'cat', 'came', 'tac', 'act']
NOTE: The output words can be in any order
--
This Gist is part of the Spring 2016 University of San Francisco MSAN 622 course: Introduction to Data and Information Visualization (taught by Jonathan Dinu). Course materials are openly available on the class website (with lectures broadcast on Youtube) for the curious autodidact.