Dsa
Arrays
Medium
Unique Character Count
Given a list of strings, count unique characters in each string while ignoring spaces. Return a list of integers corresponding to each string's unique character count.
Input Format:
- A single line with each string separated by a comma.
Output Format:
- A space-separated string of integers, each representing the unique character count of the respective string.
Example:
Input:
hello, world, programming
Output:
4 5 9
Key concepts
arrayscountinghashing
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