Dsa
Hashing
Easy
Unique Character Counter
You need to count the number of unique characters in a string, ignoring spaces and case differences. Write a program to achieve this and return the count.
Input:
- A single string (1 ≤ |s| ≤ 1000) containing letters and spaces.
Output:
- An integer representing the number of unique characters.
Example:
Input:
Hello World
Output:
7
Key concepts
hashingcountsstring manipulation
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