Amazon Interview Report
- 0of 0 votes
AnswersHow would you do to sort different files. All the data does not fit in memory.
- mikeldi10 June 19, 2014 in UK for Amazon Instant Video
Answered: Merge sort like method, where you sort each file. For the end merge, read some data from each file (make sure you have at least one from each file) and sort them| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm - 2of 4 votes
AnswersHaving a table Genre with two colums (Id, Genre) make an SQL Query that finds the Ids with the genre Action and Comedy. (those will have multiple lines for each Id)
Answer:
- mikeldi10 June 19, 2014 in UK for Amazon Instant Videoselect g.id from (select id from genre where genre = 'Action') x, genre as g where g.id = x.id and genre = 'Commedy'
| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer SQL
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.