Microsoft | Onsite | SDE-2 | Dallas | Feb 2022

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2022-02-18Added By Anonymous
Source: Link

Round 1: Create a priority queue using any data structure you think would be good.


Round 2:

•Question 1: If a service is getting hit continuously and being overloaded, how would you stop it? what steps and configurations would you do?
•Question2: (OOP) Design a card game


Round 3: A carpenter has an inventory of some logs of certain lengths and some orders of certain lengths, return True, if the farmer can fullfill the order, False otherwise

Example of Inventory:

Logs Length

2 20m

5 2m


Example of Orders

Logs Length

1 20m

7 2m


In this case, it would should return True, but think about cases when highest log is of 20m but order is of 27m, cases where you have 17m orders, cover all those cases.


Question 4:

Given n (always odd) design a n * n matrix, where 1 is in the middle position and you go spiral, growing outwards

Example:

n = 3

9 8 7

2 1 6

3 4 5

Comments