Microsoft SDE2 Interview Experience | 4 YoE
Company: Microsoft
Role: SDE II
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
My previous interview experience: https://leetcode.com/discuss/post/6958785/microsoft-sde2-l61-interview-experience-h1qhb/
R1 (DSA):
Q1. Variation of Course Schedule 2, Say given list of courses, and another list of course dependency, return the order in which course have to be taken. Need to take care of case when there is circular dependency.
Q2. Question on Inventory Management.
Was able to answer all the questions.
R2 (LLD):
Q1. Given position of snake and ladder, find min steps to reach destination.
Q2. LLD of Snake and Ladder.
This round also went well.
R3 (HLD):
This round happened almost two weeks after R1 & R2.
Q1. HLD of News Feed.
Q2. HLD of a Notification System, for an organization there could be various courses assigned to HR, Engg, Finance Team. Need to send notification based on overdue, newly assigned, to be completed soon courses.
LLD of the above question.
This is where I messed up. Interviewer asked what if I want to send notification to HR or Finance Team only. I was able to give a O(N) ans. He wanted a bit optimized.
Later on feedback I got from HR was that they wanted to go for another LLD round.
R4 (LLD):
Q1. Given a transaction amount, category, transaction type, need to find the corresponding coupon using the above information.
I used a 2D Map for this: map<Category,map<Transaction,Coupon>>
Later on there were follow up questions like what if instead of any cashback in the coupon I try to give the user some Badge like Leetcode. Or what if I want to give cashabck + badge. Or what if I want to give multiple coupons to the user.
This is where things again messed up. The feedback interviewer gave me in the end is that I should have spent some more time on requirement gathering and analysis. I should have spent some more time trying to think for such scenarios rather than jumping into the code.
From my own point of view what I felt is that this question is better suited for languages like JavaScript rather than solving it using traditional languages like CPP, Java. The interviewer was himself a frontend enginner.
As expected rejected.