Microsoft - Interview experience (selected)
Hello Everyone,
I got an oncampus offer from Microsoft.
My background:
Male, CGPA 7.14
CS undergrad from Tier-1 college.
Selection Process:
1. Online Test on Codility
2 questions, time 2 hours.
1st question was easy to medium in difficulty.
2nd question was medium to hard difficulty.
BTW, codility will not show output for hidden testcases, whether it passed or failed (very strange).
so you have to double check before submitting.
2. Technical Round 1
There was no such pattern in this round, they may ask you about your project, your past internship experiences or CS fundamentals. For me he asked about my projects like why you use a specific technology and about my internship and what worked I did. He also visited my github profile and was impressed by skills (I had 2000+ contributions and numerous projects). After that he read from resume that I worked with couple of different databases, then asked me difference b/w sql and nosql. After that he asked what's my fav. algo to which I answered binary search but he was not satisfied. after discussing about why binary search is my fav. algo, he asked me to solve a coding question on codility.
Question: https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ after solving he asked about the time and space complexity. Then again he asked what's your favourite algo. other than binary search and give reasons. This time I said dijkstra, and had some discussion over it.
Atlast he asked If I had any questions, after this interview ended it took around 40-45 mins. I was confident for the next round. Most of students got selected for next round, unless they made a mistake in 1 round. It was also on luck those who had round scheduled earlier had higher chance of getting selected for next round (that's my observation).
3. Technical Round 2
For this round also there was no such pattern it depends on the interviewer, it may be DSA, system design or both.
I had good understanding of HLD and was hoping for a system desing question. But for me this round was offline and I had to write code on pen & paper, but some folks also had this round online.
Interviewer was a senior manager 10+ YOE, he was humble and calm. He greated me asked about the whether, then he discussed about my resume and internship. he also tried to calm me down as I was feeling bit nervous this time.
After that he asked a question on pen & paper to implement a Queue using array with some basic functions like push, pop, isEmpty, isFull this queue has also a capacity C. This was very similiar to question (https://leetcode.com/problems/implement-queue-using-stacks/) which I previously solved so I was happy and I directly said I will use two arrays. Then he asked why after and discussing he said no, you try to implement without using two arrays, to which I said I will use two pointers and a array of size 2 * C, but he again asked me to implement using array of C size only. After thinking I said I'll make the array circular and solve it. After discussing a bit more about what will happen if queue is empty and you try to pop or queue is full and try to push. Then I started writting on paper I tried my best to avoid any errors. After submitting him he looked for a minute and said do you have any questions. I was shocked whether my code is correct or did I miss anything. but hopefully, when he was answering my questions I was able to guess based on his feedback that I did well. This round took around 35 - 40 mins.
After all I went back to my room, I was very excited.
Next day, Selected. Can't believe myself. Microsoft_it_is.
Bill Gates ki Jai Ho!!!
Some of you might feel this was easy, but there also some details that I didn't mention else this post will be long.