mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-26 21:58:56 +01:00
Add examples
This commit is contained in:
parent
4bd9206f01
commit
a591b2fd56
1 changed files with 5 additions and 1 deletions
|
@ -46,3 +46,7 @@ def find_uncommon_words(strA, strB)
|
|||
end
|
||||
|
||||
puts find_uncommon_words("this apple is sweet", "this apple is sour")
|
||||
# => ["sweet", "sour"]
|
||||
|
||||
puts find_uncommon_words("apple apple", "banana")
|
||||
# => ["banana"]
|
Loading…
Reference in a new issue