โ† Amazon questions
CodingReported in a candidate post, Apr 2021

Count repeating characters in a string

Filed under Amazon

Given a string, find the characters that occur more than once and return how many times each one appears, for example as a dictionary. Treat the string as case-sensitive unless told otherwise.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.