Amazon Interview Question
Software Engineer / DevelopersCountry: United States
Interview Type: Phone Interview
is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
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.
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.
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.
In short:
Mergesort is a sorting algorithm that follows the paradigm of: divide and conquer:
1) recursivly split the array in 2
2) until the array length is 1 ( or the pointers start and end are equal)
3) merge the sorted array an return the array sorted
HashTable: Is an implementation of a Dictionary where you MAP Key and Values.
- .·´¯`·.´¯`·.¸¸.·´¯`·.¸><(((º> November 16, 2013You need the Key's hashcode to located the bucket where the value is going to be store.
The hashcode must be well implemented shuch that It will always return the same value for the same key.
equals method should also be implemented in case of collision, so we can iterate over the list of values at the same bucket.
There are many implementation of MAP, one of them are hashtable which are thread safe. HashMap is similar but is not thread save.
There are other implementations where the key as store in oreder, so implemented the MapSorted such as treeMap.
hashtable operation runs on constant time O(1) (AVG), such as get, put, and contains.
There are many other things you can talk about hashing, like hashing functions, hashCode for Object class, and some others.