Amazon Interview Question for Software Development Managers
- 0of 0 votes
Suppose I am given a set of input strings input(five of them) and their corresponding replacement strings replace. Then I am given an input text, how can I replace the strings in the text matching any of the inputs with their corresponding replacements.- mikewhity October 16, 2014 in United States
Also I have to make sure that if suppose, I find a match input and I replace it by replace, then because of that it could be possible that I have a new match for input lets say because of the new characters added by replace. I don't want to make replacements with replace.
Also I cannot use regex of java.
| Report Duplicate | Flag | PURGE
Amazon Software Development Manager Replacing multiple string occurences from a text
Interview Type: Phone Interview
Open Chat in New Window