30 lines
411 B
Markdown
30 lines
411 B
Markdown
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. |