Ruby Challenge: Create a word occurrence counter
TL; DR: Get the solution on my Github repository.
Problem
Create a word occurrence counter.
Given a sentence, such as the following one:
sentence = "I love Ruby, Ruby is a great language!"
The result would be a hash
{"I"=>1, "love"=>1, "Ruby,"=>2,...
blog.alexandrecalaca.com3 min read