7 kyu
Ordered Count of Characters
6,236 of 14,407suic
Description:
Count the number of occurrences of each character and return it as a (list of tuples) in order of appearance. For empty output return (an empty list).
Consult the solution set-up for the exact data structure implementation depending on your language.
Example:
ordered_count("abracadabra") == [('a', 5), ('b', 2), ('r', 2), ('c', 1), ('d', 1)]
Fundamentals
Similar Kata:
Stats:
Created | Aug 6, 2016 |
Published | Aug 7, 2016 |
Warriors Trained | 27975 |
Total Skips | 1540 |
Total Code Submissions | 54657 |
Total Times Completed | 14407 |
Python Completions | 6236 |
Haskell Completions | 201 |
Ruby Completions | 718 |
Scala Completions | 248 |
Groovy Completions | 97 |
C# Completions | 734 |
JavaScript Completions | 4594 |
F# Completions | 89 |
CoffeeScript Completions | 15 |
C Completions | 166 |
PHP Completions | 453 |
Julia Completions | 29 |
Crystal Completions | 13 |
Go Completions | 439 |
VB Completions | 50 |
Rust Completions | 268 |
TypeScript Completions | 294 |
D Completions | 7 |
Lua Completions | 53 |
COBOL Completions | 7 |
Clojure Completions | 20 |
Java Completions | 194 |
Total Stars | 355 |
% of votes with a positive feedback rating | 91% of 1788 |
Total "Very Satisfied" Votes | 1512 |
Total "Somewhat Satisfied" Votes | 246 |
Total "Not Satisfied" Votes | 30 |
Total Rank Assessments | 9 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |