Microsoft | SDE2 | June 2022 | Bangalore | Offer

Anonymous User
398
Oct 27, 2022

Codility Test (100 minute)

  1. Given n transactions between A&B find if the transactions will be valid maintaining the minimum balance.
  2. Given string a & b, find the number of anagrams(case sensitive) present in both the string which are starting at the same index in both strings.

Technical Round I (1 hour)

10 minutes went in the introduction about what I am working on.
Interviewer told me they're going to ask 2 programming questions

  1. Reverse the sentence. There can be extra spaces in between. The output should return sentence in reverse.
  2. Rearrange the linked list such that all the nodes with greater value than the given key should be at the right of the key and smaller values at left, maintaining the order. (assume key is always present)

Technical Round II (1 hour)

Again starting 20minutes went in introduction and some behavioral questions like was there any work when it didn’t give expected outcome. What you contributed and how you resolved the outcome.

  1. Interviewer gave me a LLD question on designing a parking system which mainly focuses on allocation of slots. Asked about how I’d design the database, and the core API how it will handle the allocation of slots.
  2. Find the number of islands in the matrix. I was able to give the correct solution very quickly using BFS. But I felt like interviewer was not convinced with the solution. I rechecked the solution from gfg again and it was completely correct.
  3. Given a matrix which only contains 0’s & 1’s, how will I store it in the database. First I said I can keep it as a string but a parsing logic has to be implemented to reconstruct it. Interviewer gave me a hint if I can make use of metadata to store some information.

Hiring Manager (45 minutes)
Was really chill kinda person. Asked me to tell something which is not in my resume. Then asked me a couple of behavioral questions. Then we went to discuss LLD problem. Design a system which allocates prod issues to employees starting from lower hierarchy to upper hierarchy.

AA Round(30 minutes)
Asked some behavioral questions, gave some scenarios.

  1. How can you include everyone in the meetings
  2. How will you build something from scratch with no prior idea and no knowledge about that domain
  3. How would you deal with a situation when you realize that the idea you were working on from a long time can not be achieved.
Comments (3)