From a591b2fd5626c6fabfa8e5a56f6fb6b5d54c5cef Mon Sep 17 00:00:00 2001 From: Jessica Kwok Date: Fri, 14 May 2021 16:53:05 -0700 Subject: [PATCH] Add examples --- data_structures/hash_table/uncommon_words.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data_structures/hash_table/uncommon_words.rb b/data_structures/hash_table/uncommon_words.rb index e3e8d2f..9e17b61 100644 --- a/data_structures/hash_table/uncommon_words.rb +++ b/data_structures/hash_table/uncommon_words.rb @@ -45,4 +45,8 @@ def find_uncommon_words(strA, strB) result end -puts find_uncommon_words("this apple is sweet", "this apple is sour") \ No newline at end of file +puts find_uncommon_words("this apple is sweet", "this apple is sour") +# => ["sweet", "sour"] + +puts find_uncommon_words("apple apple", "banana") +# => ["banana"] \ No newline at end of file