First Non-Repeating Character
Given a non-empty string s containing only lowercase English letters, find and output the first character that occurs exactly once in the string.
If no such character exists, output -1.
I...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
