Dsa
Strings
Warm-up
Count Unique Characters
Write a program that takes a single string as input and counts the number of unique characters in it. The input string may contain letters, digits, symbols, and spaces. Output the count of unique characters.
Example:
Input: "Hello, World!"
Output: 13
Key concepts
stringscountingunique
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now