Files
dictionary-anagram/question.md
2024-06-24 15:08:37 +10:00

411 B

Question

Assume we have a dictionary and a word, create a program / a function to find all words in the dictionary that have the same anagram as the input word.

Example dictionary.txt

abcd
abde
abba
abab
hijkl
rstuvw
bbaa
opqrst

input word: aabb

output:

abba
abab
bbaa

Exercise

Use the dictionary in this repository, and choose random words from it to test your program / function.