Amazon Interview Question for Software Engineer / Developers






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

i feel that it will be implemented using an array..

- unknown June 11, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Depends on collision resolution strategy. If open addressing, then array of nodes. If separate chaining with list, then array of list. If Separate chaining with other structures like bst, then array of trees

- Algorithmist June 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

hey algorithmist, collision resolution comes after first building the hashtable. First for building the hashtable only array will be used. So, if collision occurs then we can use list or tree to traverse the different values for the same key, but still the slot will be only in the array..

- Anonymous June 21, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Algorithmist is right. When u try to figure out what data structure you use, you need to know what you want to do with it. It shows the interviewer that you really know the stuff and have not just scratched the surface. With Anonymous' answer you leave the interviewed open to 10 different questions after that.

- TaylorSwift December 16, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

hashtables are also built using self balancing binary trees

- Anonymous June 22, 2011 | 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