Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrcore committed Dec 1, 2016
1 parent 62b162b commit 2970516
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
Empty file added Euler/multiples-of-3-and-5.rb
Empty file.
8 changes: 8 additions & 0 deletions letter-counter/letter_counter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Class for counting all same letters in word.
class LetterCounter
def count_letters(string)
out = Hash.new(0)
string.gsub!(/[a-zA-Z]/).each { |item| out[item] += 1 }
out
end
end
Empty file added letter-counter/nixfile
Empty file.
14 changes: 0 additions & 14 deletions letter_counter.rb

This file was deleted.

0 comments on commit 2970516

Please sign in to comment.