Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityPractice Other Questions that Microsoft Asked
Continue with targeted prep from Microsoft's coding question bank and system design questions.
Interview Summary
I completed a four-round onsite interview with Microsoft for a mid-level Software Engineer position. The first three rounds covered coding and behavioral questions, including Valid Parentheses, subsequence generation, and Longest Substring Without Repeating Characters.
The final round was a system design exercise focused on aggregating data from dependent backend services under a strict latency requirement. Overall, the coding questions were relatively straightforward, while the system design round required more discussion around data pipelines, scalability, and reliability. I passed the interview.
Interview Details
Round 1 — Coding: Valid Parentheses and Subsequence Generation
Question 1 — Valid Parentheses
The first coding question was Valid Parentheses, a classic problem involving checking whether a sequence of brackets is properly balanced.
Question 2 — Build the Subsequences
The second problem required generating every non-empty subsequence of a given string and returning the results in lexicographically ascending order. A subsequence is formed by removing zero or more characters while preserving the relative order of the remaining characters.
-
Function Signature
def buildSubsequences(s: str) -> List[str]: -
Input and Output
- Input: A string
scontaining distinct lowercase English letters. - Output: A list of all non-empty subsequences, sorted in lexicographically ascending order.
- Input: A string
-
Constraints
1 <= len(s) <= 16- The string contains only lowercase English letters (
a-z). - All characters in the input string are distinct.
-
Example
Input: s = "bdf" Output: ["b", "bd", "bdf", "bf", "d", "df", "f"] Explanation: Every non-empty subsequence is included while preserving the original character order. The resulting strings are sorted lexicographically.Input: s = "bdf" Output: ["b", "bd", "bdf", "bf", "d", "df", "f"] Explanation: Every non-empty subsequence is included while preserving the original character order. The resulting strings are sorted lexicographically.
Round 2 — Coding and Behavioral
The question was the classic Valid Parentheses. One detail discussed was a quick preliminary check based on whether the input string contained an even or odd number of characters, before performing the full validation. The round also included a behavioral discussion.
Unlock Full Details
Create a free account to unlock this interview experience report.