Program to find the first non-repeating character in a string is discussed here. Given a string, the task is to find the first non-repeating character in the string.
Input and Output format:
The first line of the input consists of a string.
Sample Input 1:
teeterson
Sample Output 1:
r
Sample Input 2:
charactercharacter
Sample Output 2:
All characters are repetitive
@@coding::1@@
Recommended Programs