Amazon Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

I think:
ask question querying what part of designing elevator he wants, kinda clarifying with him that all the physical system exists, and you have few magical classes for input and output that will do actual work.
YOur work will be to co-ordinates the input classes with output/work classes.

First ask how much time you have ?
What level of details you expect ? (HLL / UML / low level / algo / interfaces)

1. First define i/p o/p interface.
2. The code converting messages from ip to op.
Design state automata for that
3. Dont forget to make the desgin testable
4. Algo duplication / code duplication if correctness is EXTREMELY important.
(e.g. suppose the elevator was used save the world mission of armageddon mission)
5. Design for extension. No limit on floor numbers, or teleporting between floors,
multiple lifts.
Think of partial lifts. No all lifts stop at every floor. et cetra ...

By the time you touch all the features, and put a basic UML, 1 hour will be up and he will be impressed by your wide thiking.....

- ajeet July 06, 2010 | Flag Reply


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