Microsoft Interview Experience | Set 158 (On-Campus)
Microsoft visited our campus. Before that, about a month ago they had conducted an online coding test. The interview consisted of 3 f2f rounds.
The test comprised of 3 coding questions. The questions were not same for everyone. I was the winner of Microsoft Code.Fun.Do so I was directly qualified for group fly round.
Question 1 – Connect every node to next right node. If any node is the rightmost node of that level, then connect it to leftmost node of next level.
Extra marks for constant space and test cases.
Similar to this:
Question 2 – Find pairs for given sum in a sorted singly linked list without extra space.
Extra marks for constant space.
Similar to this:
About my branch.
Basic OS concepts like PCB. What does it store?
Threads. Multithreading. Is there any entity which is different for every thread? What are those entities?
Two nodes of a BST are swapped, correct the BST
He asked for test cases. I gave 7-8 test cases. He was impressed by those test cases. Full code was expected.
He saw my branch and gave me a mathematical problem.
Delete n nodes after m nodes of a linked list
How is your college life? Will you miss it?
What do you want to do in future?
System Design : Given a Client-Server model, How will you handle a large number of requests coming?
We discussed this for 15 mins. I made few diagrams and told about scalability and concurrency. (involved both DBMS and OS) How we handle concurrency?
I told him about mutex and semaphore.
He seemed happy. Asked me if I had any questions. Explained about his work at Microsoft.
It took close to 2 hours for all three rounds. Straight after the 3rd round, HR took me to her room and with a huge smile said you are a very prominent candidate and you have made it.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon. Google and Microsoft Test Serieses.