Microsoft Interview experience | Set 179 (On-Campus)
Round 0: Coding Round
3 coding questions :
Platform cocubes (ui is very bad and be prepared to code in a very small text editor which can’t be enlarged).
1.Find average of ascii values of stream of characters (1 mark).
2.Evaluate a given infix expression consisting of numbers and operators.
3.Linked list question : insert the reversed liked list of nodes at odd position at alternate places.
1->2->3->4->5 to 1->5->2->3->4
(Other Questions were ){
2. regular expression matching
find how many substrings match that 10*1, exist in a given string.
3. Trim the BST so that it contains nodes with values within a given range only.
}
Round 1: Pen and Paper Round
2 questions were given and correct code was expected to be written.
2. Set the next pointer of all tree nodes.
(next pointer should point to node right to current node at same level).
Round 2: Technical Interview 1
-
- Asked me about my project.
- Construct BST from preorder and optimize it . Write correct code for it . (I also had discussion with interviewer why the complexity can’t be decreased than nLogn).
- Rotate matrix by 90 degrees (she asked me if i had already done it, to which i replied yes and she gave me an easier one ).
- Check if all leaf nodes of a tree lie on same level . Write code also
.
Round 3:Technical Interview 2
1.Asked me to write a random() for hashmap to return a random key in 0(1) time .
He helped me through it and i talked about all the pros and cons of solution as we were constructing the solution.
2. Asked me to write code to construct Trie.
3. Asked me question about calculating Bandwidth of network as a application level programmer.
BW=data transmitted/time delay(he asked but i didn’t agree and i talked about all the delays and retransmission and stuff involved in time delay than he gave hint about files read/write )
so application point of view ::
time delay=file read/write time+propagation delay
so BW=data transmitted/propagation delay.
4. Gave me 25 horses problem to which i politely replied that i know it already.
5. Then he asked me how many matches will be there if every person is to have a match with every other.
ans : nc2.
6. How many matches if there are knockouts in a tournament.
ans : n/2+n/4+n/8+……+n/2^logn
Round 4: Technical Cum HM Interview
- Discussion about the projects , what i did and what my teammates did. What did i learn from it.
- Infix expression evaluation. Why do u need 2 stacks he asked .
- Design Patterns
- What design pattern i used in my project
- what do u know about Singleton design pattern
- write code to implement Singleton design pattern
- I wrote 4 approaches with their pros and cons.
- Write a function getCallHandler() for a call center consisting of 10 employees 1 lead 1 call center head.
- Calls had to be transferred to lead only if no employee available and to call center head only if no employee and lead is available.
- Then he asked when will my solution fail and i talked about multi threaded programs and race around condition for shared variable .
- he asked me to write code for synchronizing it.
- Asked about os i use and if i have used any of its api . Asked me about ubuntu.
- Why do i wanna join microsoft ?
- what about technology do u like?
SUGGESTIONS :
1. Don’t spend too much time on writing code and being silent throughout . Write half the code, discuss your approach and its cons. They will spare the coding by having a look at even your half written code.
2. If u can’t fake that you have already done a question then straight ahead tell the interviewer.
3. Discuss things with the interviewer about your ideas and approach, they can’t help u if they don’t know where r u stuck . Also it gives them an impression that u can solve a problem with some other person or u can cooperate (team player).
Recommended Posts:
- ServiceNow Interview Experience Oncampus
- Microsoft Interview experience for full time position of software engineer at Microsoft Ireland Research
- Microsoft Interview Experience (Full Time 2018 Washington DC - with 2.5 years of experience)
- Microsoft Interview Experience | Set 169 (SDE 2 for 3.5 years experience)
- Microsoft Interview Experience | Set 151 (SDE-2 3.5 years experience)
- Microsoft IDC Interview Experience| Set 44
- Microsoft Interview Experience | Set 43
- Microsoft Interview Experience | Set 57 (For SDE)
- Microsoft IDC Interview Experience
- Microsoft IDC FTE Interview Experience
- Microsoft Interview Experience | Set 131
- Microsoft IDC Interview Experience | Set 69 (For SDE)
- Microsoft Interview Experience | Set 89 (For SDE-2)
- Microsoft Interview Experience | SDE-II
- Microsoft Interview Experience | Set 166
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



