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
Similar Kata:
Stats:
Created | Feb 3, 2014 |
Published | Feb 3, 2014 |
Warriors Trained | 151061 |
Total Skips | 16044 |
Total Code Submissions | 209060 |
Total Times Completed | 102295 |
JavaScript Completions | 44012 |
Python Completions | 40981 |
C# Completions | 5647 |
Ruby Completions | 2301 |
Lua Completions | 516 |
Groovy Completions | 138 |
Scala Completions | 698 |
C++ Completions | 4111 |
Rust Completions | 886 |
Java Completions | 3533 |
C Completions | 572 |
Haskell Completions | 64 |
Dart Completions | 145 |
Total Stars | 1450 |
% of votes with a positive feedback rating | 91% of 6612 |
Total "Very Satisfied" Votes | 5574 |
Total "Somewhat Satisfied" Votes | 897 |
Total "Not Satisfied" Votes | 141 |