Amazon Interview Report
- 0of 0 votes
AnswerThe interviewer explained me the real world scenario of the blockbuster..
- offerfromMS October 21, 2008
A location receives hundreds of copies of each film. They can be of multiple formats ( DVD,CD,Blu ray). We need to store the following information regarding the film: director, actress, rating. There are different genres possible. Action, drama etc. All the copies of a movie are placed under its shelf marked with its corresponding genre. All the movies of same genre are of the same cost. But the first time the movie arrives it stays as a different genre called "New RElease" and it is placed in a different location and priced differently. It stays that way for x number of days and after that it goes back to its corresponding genre.Each customer can take out any number of movies at a time. We need to store the due date for all those movies.
Design a software with class diagrams for this. This was asked in the first round telephonic interview.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersDesign a chess game.
- offerfromMS October 21, 2008| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Object Oriented Design - 0of 0 votes
AnswersYou have a huge file that contains 3 columns employee id, department id and salary. Give me the avg salary per department. I said I would use a hash table.
- offerfromMS October 21, 2008
He asked what are the performance issues with this appraoch.
Then he said given that you have multiprocessor system available what can you do. I said we can open multiple filepointers for reading from different parts of the file and write each record into a hash table which is made thread safe. He said that would help only if the file is stored in different tracks.
Then he asked, for every record you are writing into the hashtable waiting for a lock on it and writing. This is very inefficient, tell me how you can make it more efficient. I said I will use a cache in each of the thread and write it out to the hashtable only when cache is full. He said that is a good solution.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Application / UI Design Algorithm - 0of 0 votes
AnswersWhat is final, finalize and finally? Where do you use 'final' keyword. What is the effect of making a method final?
- offerfromMS October 21, 2008| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWhat is the default visibility of an instance variable in java? What is package visibility?
- offerfromMS October 21, 2008| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Java - 0of 0 votes
AnswersWhat do you understand by O(n)? Which grows faster, O(n^2) or O(4^(logn to the base 2)?
- offerfromMS October 21, 2008| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Terminology & Trivia