Skip to content

Latest commit

 

History

History

print_first_non_repeated

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

How do you print the first non-repeated character from a string?

Solution: Create an array of Alphabet hold number of repeaters and first-meet index to storage each character of the string. Print the least first meet index of character which has only one repeater.