Microsoft Interview - 3rd December (Senior SE/SE 2) (Not Selected)
Round 1 - Technical Round
Question : https://leetcode.com/problems/cousins-in-binary-tree/description/
They want you to ask all the requirements and then build up on a solution, at the end they would ask you for all the test cases.
They won’t help you in coming up with a approach
Round 2 - Confused HLD+LLD
Interview started with problem statement of LLD for TinyURL, the interviewer conveniently shifted to HLD.
While Scale estimation he shifted to APIs, while API he asked which database. From database he again moved to Scale estimation and DB choice. Then conversation moved towards how to generate unique URL.
Then back to LLD and APIs implementation
Interviewer just kept on pushing his thoughts and kept interrupting all the while in the interview. He probably had a fixed solution in his head since he was Manager of the share point team.
Round 3 - LLD of Multi-tiered cache LIBRARY
Client can subscribe to multi-tiered cache and have multiple layers of cache which needs to be updated and searched for key-value stores. Each time you have to search for the key in each layer starting 1 till N. If kth layer has the key update the 1 to k-1 layers with the value, if not found add it to the Nth layer.
Round 4 - Technical Round
Question
Part 1: Round started with a brief introduction of the work. Then was asked the Nuts and bolts question. Given N nuts and M bolts, you have to match each nut with a bolt. You are given a helper function which states if the nut fits the bolt or if it is bigger or smaller.
Part 2: Segregate nuts ands bolts on the basis of size in different bags