1st Round (Online)
15mcq 30mins – Most from C/C++. Few from OS
2nd Round: Coding Online (1 hour)
Top 20 students were selected for the next round. 8 had direct interviews while the rest 12 of us had another elimination round. The selection was done using the total score of both the online rounds
Elimination Round: Pen and Paper (20 mins)
Write the code implementing a queue using stacks.
Interview 1: Technical (1 hour 15 mins)
The interviews were on in parallel and when I went for my 1st interviews some were already rejected while some even had their 2nd and 3rd interview rounds.
Asked about myself and my history followed by technical questions.
- Suppose you have an array of elements which has duplicates except 1 number, ex. 1,2,3,4,3,2,1. You need write a pseudo code to find the unique number. Here ans – 4. Also asked the complexity of my code which was O (n).
- Tell the pseudo code to reverse a linked list.
I started to make the logic for O (n) but he said it might not be possible to do it in 1 iteration so not an issue. But I gave him the logic of O (n) and 1 iteration.
- You have a matrix a[m] [n]. Transpose it into a matrix b[n] [m] in minimum iterations. I could think of m*n/4 at most.
- Questions on OOPS
- Difference between OOPS and C
- Difference between abstract classes and interface. Gave cases for me to tell the error or right ans in abstract classes.
- DBMS: 5th largest salary of employees from a given table. I answered using rownum and then limit but he wanted a general ans. So all I could tell was using nested query.
– There are 25 horses. Only 5 can run together at most. You have no timer. Min no. of runs reqd. to find the fastest horse.
– There are 4 people who want to cross a bridge. Minimum time they take to cross a bridge is 1, 2, 7 and 11 respectively. There is only 1 torch and at most 2 people can cross a bridge at a time. But no one can cross the bridge without torch (Someone has to come back to give the torch). Find minimum time in which all 4 cross the bridge.
2nd puzzle I 1st answered 22 but then corrected myself and answered 18 (1 and 2 cross. 1 comes back. 7 and 11 cross. 2 comes back. 1 and 2 cross – total time 2 + 1 + 11 + 2 + 2 = 18).
I was informed 5 minutes after my interview to be ready for the 2nd Round.
Interview 2: Technical (20 mins)
Was asked about self, my project on cloud computing and questions related to it.
1 technical question.
Write a code to delete x elements after 1st n elements.
I wrote the code but missed the case where n = 0. So as he was checking the code I told him the case I had missed. He was confused if the code would work if there were less than n + x elements but I showed him that it would.
Was a short interview compared to others and was scared of being rejected but finally was called for the hr interview in sometime.
Interview 3: HR (20 mins)
He first told me about the code I had written in the elimination round that it was the best code he got in the day. Following it were typical hr questions.
Tell about myself, my strengths and weaknesses. Why do I want to join Microsoft?
Why should Microsoft hire me?
About my college project and my summer internship project.
What would you like to improve in yourself 3 years from now (other than knowledge)?
- Always show a lot of energy in the interview.
- Microsoft gives great importance to values and ethics so stick to them in your questions.
- Speak out whatever approach you think in the interview. The interviewers do not want to sit idle. They love to understand how you think.
- Do try showing company’s goals as yours.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
- Microsoft Interview experience for full time position of software engineer at Microsoft Ireland Research
- Microsoft Interview | Set 1
- Microsoft Interview | Set 8
- Microsoft Interview | Set 2
- Microsoft Interview | Set 3
- Microsoft Interview | Set 4
- Microsoft Interview | Set 5
- Microsoft Interview | Set 6
- Microsoft Interview | Set 7
- Microsoft Interview | Set 9
- Microsoft Interview | Set 10
- Microsoft Interview | Set 11
- Microsoft Interview | Set 19
- Microsoft Interview | Set 20 (On-campus for Internship)
- Microsoft Interview | Set 21
- Microsoft Interview | Set 22
- Microsoft Interview | Set 23
- Microsoft Interview | Set 24
- Microsoft Interview | Set 25 (On-campus for Internship)
- Microsoft Interview | Set 26