Print all duplicates in a string
Filed under GlobalLogic
The question
Given an input string, print all the duplicate characters present in it.
No write-up yet. Related questions below have one.
Related GlobalLogic questions
Collected from public candidate posts and coding forums. Updated Nov 2026.