Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vincentpham1991
vincentpham1991 / README.md
Last active April 13, 2016 03:54
National Day of Civic Hacking: Learning D3.js (part 1)
@vincentpham1991
vincentpham1991 / README.md
Last active March 29, 2016 22:19
MSAN 622 Homework 2: Javascript Anagrams (4/24)

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) {