Skip to content

Instantly share code, notes, and snippets.

@mathildathompson
Created March 19, 2014 22:19
Show Gist options
  • Select an option

  • Save mathildathompson/9652647 to your computer and use it in GitHub Desktop.

Select an option

Save mathildathompson/9652647 to your computer and use it in GitHub Desktop.

1`# 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".

Source

Inspired by the Extreme Startup game.

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