Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 525 Bytes

File metadata and controls

30 lines (23 loc) · 525 Bytes

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