You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
calc << dictionary_word if string_word.include?(dictionary_word)
end
end
calc.reduce(Hash.new(0)) do |acc, word|
acc[word] += 1
acc
end
end
p substrings("Howdy partner, sit down! How's it going?", ["below","down","go","going","horn","how","howdy","it","i","low","own","part","partner","sit"])