# Microsoft Interview | Set 21

Last Updated : 10 Jan, 2019

Hi, a brief documentation of my Microsoft experience is as follows:

Group Activity:

On the evening before the interview we had a group activity round. We were given to solve one question on our own, and the other one we had to solve discussing with Microsoft mentor allotted to you.

1. Insert an element in a sorted circular singly linked list. Pointer to any node of the LL will be given as input
2. A matrix m*n is given. If a cell contains 0 (zero) make that row and column zero.

We had to discuss Q2 with Microsoft mentors. Discussion is important and they point out flaws and ask you to optimize algo.

Interview Round 1:

1. Asked me to solve Q2 of group activity without using extra space.
2. Given an array of digits, form two numbers from those digits such that sum of those two numbers are minimum
3. Given an array of numbers, find out the minimum distance and print all the pairs with minimum distance

Interview Round 2:

Interview Round 3:

1. Given a set of rectangles of varying length and breadth, find out the maximum height stack you can form with them such that if rectangle R1 is on top of rectangle R2 then length(R1)<=length(R2) and breadth (R1)<=breadth(R2)
2. Given the number of braces(opening +closing), find out the number of valid combinations you can form with them.

Previous
Next