Create description.md
This commit is contained in:
parent
225cfafe06
commit
4bcaf572c6
30
library2/description.md
Normal file
30
library2/description.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
Your librarian is back again with another challenge for you. She recently acquired a dictionary of an alien language. However, she has no way to read it and understand the language because she doesn't know any of the words in it. She wants to know the minimum number of alien words she needs to know in order to be able to understand the entire dictionary.
|
||||
|
||||
Input:
|
||||
|
||||
```
|
||||
word1: list of words in word1 definition
|
||||
word2: list of words in word2 definition
|
||||
... etc
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
an integer representing the minimum number of words required to understand whole dictionary
|
||||
|
||||
|
||||
Ex:
|
||||
|
||||
Input:
|
||||
```
|
||||
arggiq: blah iz yiq
|
||||
blah: ok
|
||||
iz: ok blah
|
||||
yiq: ok iz
|
||||
ok: blah
|
||||
```
|
||||
|
||||
Output:
|
||||
```
|
||||
1
|
||||
```
|
Loading…
Reference in a new issue