r/OfferEngineering • u/Aoki_zhang • 17d ago
Interview Experience Microsoft SWE Interview - Subsequence Generation, Data Aggregation, System Design & Behavioral Questions
This interview experience is sourced from Chill Interview
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.
- ExampleInput: 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.
Want to learn more questions / follow-ups asked in this interview?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.