Amazon Interview: First nonrepeated character in string
Tutorials Shared by the Internet Community
Total Hits - 26182
Total Votes - 179 votes
Vote Up - 57 votes
Vote Down - 122 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 . ...