Anagram-Solver | single words that is fetched from an text file
kandi X-RAY | Anagram-Solver Summary
kandi X-RAY | Anagram-Solver Summary
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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Anagram-Solver
Anagram-Solver Key Features
Anagram-Solver Examples and Code Snippets
Community Discussions
Trending Discussions on Anagram-Solver
QUESTION
im fairly new to python and im not sure how to tackle my problem im trying to make a program that can take a string of 15 characters from a .txt file and find words that you can make from those characters with a dictionary file, than output those words to another text file. this is what i have tried: attempting to find words that don't contain the characters and removing them from the list various anagram solver type programs of git hub
i tried this sudo pip3 install anagram-solver
but it has been 3 hours on 15 characters and it is still running
im new so please tell me if im forgetting something
...ANSWER
Answered 2020-Jun-25 at 12:36If you're looking for "perfect" anagrams, i.e. those that contain exactly the same number of characters, not a subset, it's pretty easy:
- take your word-to-find, sort it by its letters
- take your dictionary, sort each word by its letters
- if the sorted versions match, they're anagrams
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Anagram-Solver
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page