For Microsoft Bangalore CRM team.
Experience: 1.7 years.
Round 1:(Written test)
Question 1 : Given a binary search tree . Print its level order traversal in reverse order level wise .eg if level order is 1234567 then required output was 1327654
Question 2: Given a binary search tree , Print its zig zag traversal .
Complete syntactically correct code was required with all corner cases covered .
He asked me to Introduce myself and then started asking me about my project
1. Print the given matrix in spiral order .
Code should be syntactically correct with all corner cases handled in a single attempt.
2.Count all possible decodings of a given digit sequence .
Initially I started off with a recursive solution and came up with Dynamic programming solution afterwards. Full working code was required without any corner case missing.
He asked to list down all the possible test cases for the given scenario . He was very particular about the Test cases .
He asked me to introduce myself.
1.He asked me about the current project which i m working on.. and a few questions on the technologies which were used in the project.He was very particular about my project discussion.
2. Given a linked list consisting of String in each Node . Given just a pointer to the head Node , I was required to find whether the resultant String formed by combining all the Nodes of the linked list is a palindrome or not .
eg – Consider this linked List structure
“aba” -> “cd” -> “efe” -> “d” -> “caba”
Hence this structure is palindrome . Was required to check for palindrome online as Linked List length could be infinite at any point of time .
I was required to discuss and write full code on the whiteboard starting from Node structure to the end logic .
After that i was required to list down Test Cases for the same .
He asked me to walk him through my resume.
1. Why Microsoft?
2. Why do u want to leave your current company?
3. Deep discussion on the current project which I’m working on.
4. Write code for the crossword puzzle game .I said I have not played it earlier .
He then asked me to discuss and write code for Sudoku game in whiteboard. I wrote it using Backtracking
5. Suggest some improvement which u can carry out in Microsoft Office .
1.Discussion on current compensation etc.
A big Thanks to GeeksforGeeks for providing such a brilliant platform for interview preparation .Keep up the good work 🙂
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 | Set 111 (For 1.5 Years Experienced)
- Microsoft Interview Experience | Set 154 (For 1.5 Years Experienced)
- Microsoft interview experience: | Set 167 (7 Years Experienced)
- Microsoft Interview Experience | Set 112 (For 4.5 Years Experienced)
- Microsoft interview Experience | Set 48 (For 1.5 Years Experienced)
- Microsoft Interview Experience | (SDE-2 for 3 Years Experienced)
- Microsoft Interview experience | Set 115 (4 Years Experienced for IDC)
- Microsoft Interview Experience | Set 109 (2 years experienced)
- Microsoft Interview experience | Set 114 (2.5 Years Experienced for SDE2)
- OYO Interview Experience | Set 11 (For 2 years experienced)
- Paytm Interview Experience | Set 12 (For 1.5 Years Experienced)
- Amazon Interview experience | Set 334 (For 4.5 Years Experienced)
- Oracle Interview Experience | Set 42 ( 2 Years Experienced )
- Paytm Interview Experience | Set 11 (For 2 Years Experienced)
- Paytm Interview Experience For Experienced (2.5 years)