Skip to content

Latest commit

 

History

History

countCharactersInYourString

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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, {}.