Skip to content

Instantly share code, notes, and snippets.

@jasonhazel
Created February 24, 2014 16:13
Show Gist options
  • Save jasonhazel/9191311 to your computer and use it in GitHub Desktop.
Save jasonhazel/9191311 to your computer and use it in GitHub Desktop.
gets.chomp.split.group_by(&:size).each {|k, v| puts "#{v.size} words with #{k} letters" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment