Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 582 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 582 Bytes

Anagram Solver

Given a file containing one word per line, print out all the combinations of words that are anagrams; each line in the output should contain a set of input words that are anagrams of each other. No word should appear in the output more than once.

For added programming pleasure, find the longest words that are anagrams, and the set of anagrams containing the most words.

The app is tested with Ruby 1.9.3-p194.

Usage

 $ ./run.rb wordlist.txt

Testing

 $ ruby ./spec.rb

Authors

Trung LE [email protected]