Dsa
Strings
Warm-up
Find First Non-Repeating Character
Create a program that finds the first non-repeating character in a given string. If all characters are repeating, return an empty string. Ignore spaces.
Input Format:
A single line containing the string.
Output Format:
The first non-repeating character or an empty string if no such character exists.
Example:
Input:
character
Output:
c
Key concepts
stringscounting
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