Amazon Interview: First nonrepeated character in string
Tutorials Shared by the Internet Community
Total Hits - 27753
Total Votes - 193 votes
Vote Up - 64 votes
Vote Down - 129 votes
Domain - javahungry.blogspot.com
Category - JAVA/Core JAVA
Submitted By - Java Hungry
Submitted on - 2014-01-30 06:22:04
In written exams or in technical interview of Amazon , you can easily find this question . So in order to help you for the preparation of interview , we are answering this question in this post .
First we need to understand the question , we need to write an algorithm for the first non repeated character in a string , for example
Read Also : Count number of words in the String
If the word "stress" is input then it should print 't' as output .
If the word "teeter" is input then it should print 'r' as output . More detail...