question
This commit is contained in:
30
question.md
Normal file
30
question.md
Normal file
@@ -0,0 +1,30 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user