Amazon Interview Report
- 0of 0 votes
AnswersGiven a target string, an input request replaces the word after the given index a->b such as:
- ajay.raj May 04, 2018 in United States
Target string: "Hello world!"
Input:{s:0, a:Hello b: Goodbye}
Output:"Goodbye world!".
The requirement is that input be given to several words that need to be changed at one time: {{s:0,a:Hello,b:Goodbye},{s:11,a:!,b:?},{s:6 a: World,b:friend}}
And each modified index is based on the original unmodified target string so the end result is
"Goodbye friend?"| Report Duplicate | Flag | PURGE
Amazon Software Engineer
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.