Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/runlevel5/anagram-solver

Look for anagrams from a set of single words that is fetched from an text file.
https://github.com/runlevel5/anagram-solver

Last synced: about 9 hours ago
JSON representation

Look for anagrams from a set of single words that is fetched from an text file.

Awesome Lists containing this project

README

        

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