Skip to content

Deduplicate - count characters in string #110

@hobovsky

Description

@hobovsky

In Python, most of the kata can be solved with a mere from collections import Counter as solution.

  1. String Letter Counting
  • 6kyu, but beta votes were pointing towards 7 kyu
  • result is a formatted string
  • 93% with 2.5k completions
  • 1 pending issue
  • 4 languages, 2 pending translations
  • Published Oct 2017, author inactive
  1. Count letters in string
  • 6kyu, but votes were pointing at 7 kyu
  • Can be solved by aliasing Counter
  • 91% with ~4.8k completions
  • 1 pending issue about being a duplicate
  • 4 languages, 2 pending translations
  • Published Oct 2016, author inactive
  1. Count characters in your string
  • 6kyu
  • Can be solved by aliasing Counter
  • 90% with 47k completions
  • 2 pending issues
  • 8 languages, 1 pending translation
  • Published Feb 2014, author inactive
  1. Character frequency
  • 6kyu
  • case-insensitive, filtered, output is a sorted list of tuples
  • 93% with 2.5k completions
  • 4 pending issues
  • 6 languages, 1 pending translation
  • Published Aug 2014, author inactive
  1. Ordered Count of Characters
  • 7kyu
  • Output is a list of tuples in order of appearance, case sensitive
  • 91% with ~8.5k completions
  • 1 pending issue
  • 18 languages + 1 pending translation
  • Published Aug 2016, author active
  1. Occurrences in a string
  • 7kyu
  • 86% with 170+ completions
  • 1 pending issue
  • 1 approved language (CoffeeScript only), 1 pending translation (JavaScript)
  • Published Nov 2015, author last active Apr 2022
  1. Character Frequency
  • 8kyu
  • Can be solved by aliasing Counter
  • 93% with 5.9k solutions
  • No pending issues
  • 3 languages, no pending translations
  • Published Dec 2014, author inactive
  1. Counting Array Elements
  • 7kyu
  • Counts not characters in a string, but strings in an array. Can be solved by aliasing Counter.
  • 94% with ~6.7k completions
  • No pending issues
  • 4 approved languages, no pending translations
  • Published May 2015, author inactive

Languages:

image

A - approved translation
P - pending translation


Conclusion

Filling gaps

  • Move COBOL pending translation from 2. to 3. or 5.

Metadata

Metadata

Assignees

Labels

discussion/deduplicateDiscussion and vote what to do with duplicate kata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions