Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/runlevel5/anagram-solver
- Owner: runlevel5
- Created: 2011-09-06T02:15:04.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-07-04T00:39:09.000Z (over 12 years ago)
- Last Synced: 2024-11-25T17:13:14.717Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 214 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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