Skip to content

Instantly share code, notes, and snippets.

View kirkhunter's full-sized avatar

Kirk Hunter kirkhunter

View GitHub Profile
@kirkhunter
kirkhunter / README.md
Last active April 11, 2016 15:18
National Day of Civic Hacking: Learning D3.js (part 1)
@kirkhunter
kirkhunter / README.md
Last active March 29, 2016 22:21
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 is_anagram = function(word1, word2) {