Microsoft interview experience

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-09-27Added By Anonymous
Source: Link

Company: Microsoft
Role: SDE
Interview Stage: Onsite
Location: unknown
Year: 2025

Original Post Content:

Microsoft interview experience (Sep 2025):
Applied through portal, later received a link for OA.
There were 3 rounds:
1. Online assessment - Has 2 dsa questions and both were medium level questions and solved them completely. (105 mins)

2. Round 1 - DSA Round (45 mins):
It started off with introduction and interviewer asked the following DSA question:

Q :
Given a string s of length n which has lower case alphabets. For each index i from 0 to n find the character to left of index i which occurs only once and append to the ans. If there are multiple characters which occur only once, then append the one which occurs first. If there is no character which satisfies the above condition, then append '#' to the ans. Return the final string ans.
Follow - up : How do you solve the same question if the string has uppercase letters, numbers and special characters.
Example : "aabcdb"
Output : "a#bbbc"

Solved the above question using hashmaps. Interviewer was satisfied with my solution.

3. Round 2 - DSA + Technical (45 mins):
Started with introduction and discussion moved onto projects, later some questions on the last project that i have done which has solved a problem.In the other half a DSA question was asked.Link to the problem.
Q : https://leetcode.com/problems/find-the-closest-palindrome/description/

Was able to come up with the approach but was not able to code it completely.
For those who are preparing for the interviews focus on DSA as well as time management. Be very sure about the time and space complexity. Make sure to maintain a clear communication with interviewer while explaining something.
Feel free to ask anything that you want to know.

Comments