Skip to content

Instantly share code, notes, and snippets.

@SoxFace
Forked from epoch/anagram.md
Last active August 29, 2015 14:13
Show Gist options
  • Save SoxFace/b702bc89424b3922313f to your computer and use it in GitHub Desktop.
Save SoxFace/b702bc89424b3922313f to your computer and use it in GitHub Desktop.

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