mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-25 21:58:57 +01:00
Add examples
This commit is contained in:
parent
4bd9206f01
commit
a591b2fd56
1 changed files with 5 additions and 1 deletions
|
@ -45,4 +45,8 @@ def find_uncommon_words(strA, strB)
|
|||
result
|
||||
end
|
||||
|
||||
puts find_uncommon_words("this apple is sweet", "this apple is sour")
|
||||
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