Find duplicate characters, count, and indices in a string
Filed under Enquero
The question
Given a string, find all duplicate characters, print the duplicate characters followed by their counts and the indices where they were found.
No write-up yet. Related questions below have one.
Related Enquero questions
Collected from public candidate posts and coding forums. Updated Nov 2026.