Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 383 Bytes

File metadata and controls

9 lines (7 loc) · 383 Bytes

Count characters in your string

6 kyu link to kata
my solution

The main idea is to count all the occurring characters in a string. If you have a string like aba, then the result should be {'a': 2, 'b': 1}.

What if the string is empty? Then the result should be empty object literal, {}.