Microsoft | SWE 2 | Rejected
Company: Microsoft
Role: SWE 2
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
Hi, Attended Microsoft Hiring drive on 31st October.
Round 1:
2 DSA Questions:
https://leetcode.com/problems/max-consecutive-ones-iii/description/
https://leetcode.com/problems/rotting-oranges/
Exact same question was asked.
Round 2:
https://leetcode.com/problems/word-ladder/description/
I was asked to print one of the shortest sequence as well.
Round 3:
HLD
Given a Music streaming service like spotify, you need to add a feature to return top K songs in last 7 days.
I gave a solution with taking a 7 day window, for each day we will store (song : count), and keep a sliding window, on each new day we will add data for new day, and remove the data of last day. And put all of it in minheap of size k.
And return the minheap data.
I said this we will do everyday.
HLD I only had a DB, for song data, cache to store this count, and a playback server, and this topK song server, api gateway and Load balancer. He had asked to keep only components related to the new feature.
I discussed concurrency a bit, said we will use redis redlock.
Overall this round did not go well.
Rejected In 3rd Round.