Microsoft SDE2 interview experience 12/2024

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-12-21Added By Anonymous
Source: Link

1st round : A DSA question :A is organising a party and A will invite his friends with the condition, his friends do not know each other. There is a direct edge from person1 to person2 if they are friends. How many person A can invite at max.

ex: A->B, A->C, A->D, B->C. Here A can invite either [B,D] or [C, D] so 2.


2nd round: given an correctly parethesise string, every second first character is getting removed and there are m ways to balance the whole string again. you need to keep doing the same operation until the string become empty.


ex: (())

after first round it will be ()) -> so you can remove any two ) second or third one. so two way, then you will get (), after removing it will become ), then only one way. so total 2*1 way.


3rd round : Design a deployment system.

Comments