Any starters or help of any kind would be greatly appreciated. The program is de
ID: 3672643 • Letter: A
Question
Any starters or help of any kind would be greatly appreciated.
The program is designed to be a "helper/solver" for the app "Just 2 Words" The program functions as follows: given a wordlist, a collection of letters, and the length of one of the words, find all possible two words "answers" that use exactly the collection of letters given. The default word list is "wordlist.txt" (provided) and the default collection of letters aadekmmnortww. The default word length is 7. The "wordlist.txt" word list is also provided here in this directory. Note: the program either uses all the defaults or all three parameters must be specified Here are some examples of correct outputs:Explanation / Answer
NOTE: It will be nice if you could add example output.
The main task is here to check if there is anagram of word given as collection of letters. Please consider following pseudocode
Create an array A of size 26 representing count of each letter in given collection of letters
For each word in wordlist:
make an array B of size 26 representing count of each character in word
if array A is exactly equal to B then we found the word, print it
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.