Amazon Interview Question for Software Engineer / Developers


Team: Intern
Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
1
of 3 vote

h%t%t%p://thought-works.blogspot.in/2012/11/object-oriented-design-for-online.html
(remove % in the url and paste in the address bar)

- sriniatiisc November 11, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

Observer pattern (Publish/Subscribe)

- whizz.comp March 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think we should talk data structures here, and I think 'heap' would be the best way. Everytime a higher bid is placed, it can take the top position. And if a bid gets cancelled, the heap will re-adjust to bring the highest available bid on top.

- Akheel October 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

how about use priority queue? PriorityQueue<people, price> price is the priority. the higher of the price, the more change to get the product. If a person provide a higher price, change his/her priority

- zhaosonglin December 22, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@zhaosonglin. Max - heap based priority queue sounds reasonable. We should have 3 classes: item, user, bid. And basic rules of OO design will follow using inheritance, dynamic binding, observer pattern for notification etc.

- YetAgain February 24, 2013 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More