Amazon Interview: First nonrepeated character in string

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Amazon Interview: First nonrepeated character in string

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 ,
http://javahungry.blogspot.com/2013/12/first-non-repeated-character-in-string-java-program...
  • Total Hits: 19295

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 228 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2014-01-30 06:22:04

  • Submitted By: Java Hungry

  • Set as Favorite

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...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 51.75%  118
 Two starsTwo star  Vote LeftVote MiddleVote Right 7.46%  17
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 8.77%  20
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 7.89%  18
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 24.12%  55

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements