Amazon Interview: First nonrepeated character in string
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 22964
Total Votes: 235 votes
Category: JAVA/Core JAVA
Submitted on: 2014-01-30 06:22:04
Submitted By: Java Hungry
Description: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...