Skip to content

Latest commit

 

History

History

012-first-non-repeated-character

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

First Non-Repeated Character

Challenge Description:

Write a program which finds the first non-repeated character in a string.

Input sample:

The first argument is a path to a file. The file contains strings.

For example:

yellow
tooth

Output sample:

Print to stdout the first non-repeated character, one per line.

For example:

y
h