I applied online. The process took 1 day. I interviewed at Amazon in Oct 2011
Interview
This was a phone screen. I've already posted the onsite interview information. It was your typical hour long technical phone screen. I was asked:
- What is the difference between a linked list and an array
- Describe mergesort and its runtime
- What is a hash table, hash function, runtimes, collision, etc.
- What is a Binary Search Tree, runtimes... pros/cons vs hash table
- Lowest Common Ancestor (See below)
Interview questions [1]
Question 1
Imagine a data structure similar to a Binary Tree except, rather than each node pointing to is lchild and rchild, it only points to its parent. Write a function that, given two nodes into such a structure, returns their Lowest Common Ancestor - the lowest node in the tree which where both subtrees meet.
I applied online. The process took 4 months. I interviewed at Amazon in Jan 2014
Interview
Applied the SDE position online in October and waited for an interview for 3 month. In mid January, I received the email for phone interview arrangement. Interview has two back to back 45 mins interviews, but after I finished the first one, the recruiter rearrange the second interview to the next day. Both interviews are technical, and there are 4 questions in total. Still waiting for the result.
Interview questions [1]
Question 1
1. Given a number (not necessarily of type int), find if it is 2^n. What is the complexity?
2. Given a set of points represented by x and y coordinates, find out the first k points that are closest to the origin. What is the complexity?
3. Given an array of integers, return the largest occurrence element times its array index. Do it in place. What is the complexity?
4. Given a binary tree(not necessarily BST), return the sum of all kth level nodes. What is the complexity?