Amazon Interview Question for Software Engineer / Developers


Country: United States
Interview Type: Phone Interview




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

1) Hash_map is a Hashed Associative Container that associates objects of type Key with objects of type Data.
Finding an element in a hash_map by its key is efficient, so hash_map is useful where the order of elements is irrelevant.
If order of elements is important we use STL Maps.

2) Elements in a hash map are organized in buckets. The value of a deterministic hash function with input as key, determines the location for storing a <key, value> pair.

3) STL hash maps can have only 1 value associated to a specific key. The original value for a key is over-written when you insert another value for the same key. If we wish to associate different values with same key, we should use STL MultiMaps.

4) Queues are FIFO (First in First Out) based Data structures.

5) priority queue: elements are pulled highest-priority-first

6) Priority need not be integral. There can be string comparisons as priority

- Anonymous November 06, 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