[Interview Experience]: MIcrosoft SDE-2 | Hyderabad
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-06-12Added By Anonymous
Source: Link
Recently I appeared for Microsoft SDE-2 interviews for a team in Hyderabad. Below are details.
1.Round-1: OA with 2 medium questions
2.(A) 1st question was easier variation of https://leetcode.com/problems/find-all-possible-recipes-from-given-supplies/
3.(B) An easy 1-d array based DP question
4.Round-2: DSA Round
5.(A)3 Sum: https://leetcode.com/problems/3sum/
6.(B) Follow up on 3sum to make it to 4 Sum, K-Sum
7.(C) General questions on how would you test your code, what sort of tests you shall write to make sure your application is correct.
8.Told everything and feedback was good.
1.Round-3: LLD Round: Problem: GIven N jobs are running. Each job is tied to a specific user. When the job completes, it needs to send the notification to the user(Either email or sms). Also notification limit is 2 per day per user initially but should be configurable. When the notification limit for a user is breached for the day, save this notifcation to be tried to delivered next day. However, no fairness policy in delivering notifications should be okay.
For the above problem I proposed Notification system design using observer pattern. For Rate limiting I used strategy pattern where each strategy can correspond to a particular algorithmic implementation of the rate liming algorithm.
1.Round-4 LLD Round. Discuss about low level design of distributed cache and how would you extend it to LRU and LFU. Was asked running implementation for LFU cache code with key and value type being generic and configurable.
1.Round-5: Project discussion and one programmatic question. Programming question: GIven a very large file consisting of integers(this file is very huge to be fit in main memory of any computer), how would you sort this file. Was asked to write running code for it. Wrote the code and explained it.(K-way merge sort to rescue!)
As per my expectations, all round went well. Hoping for the best.
Status: Positive feedback. Waiting for offer from this team to negotiate with other team at MS