Skip to content

Instantly share code, notes, and snippets.

@epoch
Created June 25, 2014 22:28
Show Gist options
  • Save epoch/f9958bf759aaf917e271 to your computer and use it in GitHub Desktop.
Save epoch/f9958bf759aaf917e271 to your computer and use it in GitHub Desktop.
Anagram

Anagram Detector

Write a program that, given a word and a list of possible anagrams, selects the correct one(s).

In other words, given: "listen" and %w(enlists google inlets banana) the program should return "inlets".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment