I applied through a recruiter. The process took 2 weeks. I interviewed at Microsoft (Redmond, WA) in Feb 2009
Interview
It was 5 years ago. I really forgot the questions. They are not hard. Questions like reverse a linked list, etc. It took 5 hours, too long, after all a director asked me for coffee. It ended up that two teams gave me offer.
Interview questions [1]
Question 1
It was 5 years ago. I really forgot the questions. They are not hard. Questions like reverse a linked list, etc
I applied online. The process took 3 weeks. I interviewed at Microsoft in Sep 2013
Interview
There were totally 2 rounds of Phone Interview.
1st round: "Given a linked list such that one node point to some random node, Write the clone method of a linked list."
I was able to give an approximate solution in C# using Dictionary, the interviewer was helpful and encouraging inorder for me to come to exact solution.
Couple of days later, got a call back from recruiter that I will be interviewed for 2 round of phone interview.
Interview questions [1]
Question 1
2nd round:
"What is the data structure which suits best for the Battleship game? The board will be of size n x n, with m different ships each having k1, ..., km lengths. Each ship can either by place horizontally or vertically on the board.
The structures should be designed such that they can support basic operations for playing a game. For example, the board and a particular (i, j) coordinate representing a position on the board may be passed into a function attack(). The function should return hit if a ship was hit at that position, sunk if a ship has sunk after being attacked at that position, and miss if no ship is at that position.
Describe your design of the structures, what kind of data they store, and the runtime complexity of typical operations for playing the game (like the attack() function) as a result of your design decisions"
I was coming with an O(n) solution during attack, which was my first attempt and then I was thinking about optimization. But by then the time was over and interviewer seemed unhappy with my solution or the attempt.
I applied through a recruiter. The process took 2 weeks. I interviewed at Microsoft (Bellevue, WA) in Aug 2013
Interview
1st round phone interview. 2nd round onsite
On site: meet 4 people and each ask you 1 or 2 questions
Interview questions [1]
Question 1
Solve: M is a 2D matrix of integers (nXm) they are sorted in both row and column Write a function search(int s) that return the exact location of the number or Null using lgn