Go back to Challenges list
The Pair of Characters
There are N characters in an array A. All the characters occur only once except one that ocurs twice. Your task is to find out that character that occurs twice. All characters will be lowercase.
Input FormatA string that contains N characters each separated by a single space.
Output FormatThe output expected is the character that occurs twice.
a b c d d e f
a j h d f s e r s