From 4bcaf572c629279a16f32a465df0d7b024a6383b Mon Sep 17 00:00:00 2001 From: Ankur Sundara Date: Thu, 3 Nov 2016 13:44:32 -0500 Subject: [PATCH] Create description.md --- library2/description.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 library2/description.md diff --git a/library2/description.md b/library2/description.md new file mode 100644 index 0000000..9e733f0 --- /dev/null +++ b/library2/description.md @@ -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 +```