modernmaster / tutorials

A collection of code samples detailing various frameworks, patterns, and algorithms
MIT License
5 stars 1 forks source link

Given a string, find its first non-repeating character #21

Open modernmaster opened 4 years ago

modernmaster commented 4 years ago

Description

Given a string, find its first non-repeating character

Example

Given a string, find the first non-repeating character in it. For example, if the input string is “GeeksforGeeks”, then output should be ‘f’ and if input string is “GeeksQuiz”, then output should be ‘G’.