Microsoft SDE2 (L61) Interview Experience | 4 YoE

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-07-14Added By Anonymous
Source: Link

Company: Microsoft
Role: SDE2 (L61)
Interview Stage: Onsite
Location: unknown
Year: unknown

Original Post Content:

R1 (DSA):

  • Q1. Shortest distance between two nodes.
  • Q2. Probable celebrity problem.

R2 (LLD):

  • Q1. Design a Logger System.Type of Message: INFO, DEBUG, WARNING, ERROR.User should be able to decide which type of message to be displayed. Messages should either be displayed in a log file or console.

R3 (LLD):

  • Q1. Design a circular buffer.Implement a Circular buffer, where the size of the buffer is given as input by the user, say size of buffer=10.I write, HE,Then write, LLO, buffer will be HELLO.Post that I read(2), i.e., first two letters, HE will be returned.Then if I write SAMELEVEL it will override some characters from HELLO, but the HELLO isn't even read yet, then it is wrong.I added some handling that keeps on writing in the buffer until we encounter where our read pointer is. If we encounter the read pointer, the write operations should fail completely.But then the interviewer pointed that I was writing a partial string to the buffer and if the exit condition is true, I was exiting.

Although I felt the interviewer should have probably presented all these scenarios during the question briefing only. But that's what life is.

Result: Rejected

Comments