6 kyu

Count characters in your string

44,012 of 102,295riston

Description:

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

Strings
Fundamentals

More By Author:

Check out these other kata created by riston

Stats:

CreatedFeb 3, 2014
PublishedFeb 3, 2014
Warriors Trained151061
Total Skips16044
Total Code Submissions209060
Total Times Completed102295
JavaScript Completions44012
Python Completions40981
C# Completions5647
Ruby Completions2301
Lua Completions516
Groovy Completions138
Scala Completions698
C++ Completions4111
Rust Completions886
Java Completions3533
C Completions572
Haskell Completions64
Dart Completions145
Total Stars1450
% of votes with a positive feedback rating91% of 6612
Total "Very Satisfied" Votes5574
Total "Somewhat Satisfied" Votes897
Total "Not Satisfied" Votes141
Ad
Contributors
  • riston Avatar
  • jhoffner Avatar
  • Jotha Avatar
  • suic Avatar
  • anter69 Avatar
  • depperm Avatar
  • Chrono79 Avatar
  • NunoOliveira Avatar
  • Souzooka Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • monadius Avatar
  • user9277937 Avatar
  • hobovsky Avatar
  • MikChan Avatar
  • Alexenon Avatar
  • miguel99 Avatar
  • ejini战神 Avatar
  • tobeannouncd Avatar
  • yLaWy Avatar
  • KayleighWasTaken Avatar
  • Tester_blck Avatar
Ad