Microsoft interview questions
Software engineer
Coding
- LRU Cache (LeetCode 146)
- Subarray Sum Equals K (LeetCode 560)
- Even Odd Tree (LeetCode 1609)
- Reverse Words in a String (LeetCode 151)
- Reverse Nodes in k-Group (LeetCode 25)
- Sum Root to Leaf Numbers (LeetCode 129)
- Regular Expression Matching (LeetCode 10)
- K Closest Points to Origin (LeetCode 973)
- Boundary of Binary Tree (LeetCode 545)
- Currency conversion: find the rate between two currencies from a set of known rates
- Min Stack (LeetCode 155)
- Valid Parentheses (LeetCode 20)
- Generate Parentheses (LeetCode 22)
- Find the Duplicate Number (LeetCode 287)
- Remove duplicates from a sorted array in place, with a follow-up on keeping repeats
- A variant of the minimum meeting rooms problem
- Merge Intervals (LeetCode 56)
- Trapping Rain Water (LeetCode 42)
- Group Anagrams (LeetCode 49)
- Palindrome Linked List (LeetCode 234)
- Design Twitter (LeetCode 355)
System design
- Design a distributed LRU cache, with unit tests and both high- and low-level design
- Design a URL shortener, including ID generation and multi-region deployment
- Low-level design of a music app like Spotify: classes, interfaces and enums
- Design a logging and password management system
- Design a low-latency real-time notification system
- Design a service that stores palindromes durably and checks whether one already exists
- Design a quiz web page and backend API that tests students on country names from pictures
- Design an interface for a credit card registration system used by many firms
- Operating-system design: make Windows responsive under many object requests by improving memory management and garbage collection
What Microsoft looks for
- Growth mindset — Be a learn-it-all: pick up new skills quickly and connect with others to bring big ideas to life.
- Diverse and inclusive — Stay open to learning about your own biases, and seek out and value different perspectives.
- One Microsoft — Look for common ground across teams, build on others' success and put the customer and team first.
- Customer obsession — Learn customers' perspectives, show empathy for their experience and fold that into your decisions.
- Respect, integrity and accountability — Treat each other with respect, act with integrity and be accountable for your words and actions.
Behavioral questions
- What are your top two strengths and weaknesses?
- Tell me about a time you failed and what you learned from it.
- Tell me about a conflict with a colleague and how you resolved it.
- Walk me through a complicated problem you solved at work, such as how you handled caching or scaling.
- Tell me about a time you applied feedback you received.
- Describe how you adapted your approach when a situation changed.
- Tell me about a time you worked closely with others to deliver a result.
- How do you debug a production bug?
- Describe a feature you designed in your current role, the decisions you made and their trade-offs.
The loop
- Application review and screen: After reviewing resumes, some teams hold a short screening conversation, often with a recruiter, to decide who to interview.
- Coding screen or online assessment: A coding phone screen with easy to medium problems, or an online test (Codility or HackerRank) with a couple of algorithm questions graded on test cases.
- Interview loop: Usually two to four conversations of up to an hour each with future teammates and cross-functional colleagues: coding, design and behavioral, sometimes a domain-specific round.
- Hiring manager or As Appropriate round: A final senior conversation that digs into past projects and team fit and may still include a design or coding question.
- Decision and offer: Your recruiter shares the timeline and outcome; if you are hired, offer papers come by email or the Action Center.
Tips
- Answer behavioral questions with STAR plus a final Reflection: situation, task, action, result and what you learned.
- Ask clarifying questions, state your assumptions and talk through your approach; it is fine not to know everything.
- Write real, clean code in the language you know best (no pseudocode), and test it before you say you are done.
- Manage your time; technical rounds are short, around 45 minutes.
- Know at least one n log n sort and the common data structures, and review distributed-systems basics before design rounds.
- Study the services the team uses and prepare two or three past projects in depth.
Sources
- How we hire — Microsoft Careers
- Interview tips — Microsoft Careers
- Technical interviewing — Microsoft Careers
- Senior Engineer's Guide to Microsoft's Interview Process and Questions — interviewing.io
- Interview Experience - Microsoft SDE 2 (L61) — LeetCode Discuss
- Microsoft SDE 2 | L61/62 | Interview Experience — LeetCode Discuss
- Microsoft | SDE | L60 — LeetCode Discuss
- Microsoft Interview Experience | SDE-II | Offer Received — LeetCode Discuss
Other companies
- Amazon
- Meta
- Apple
- Netflix
- NVIDIA
- OpenAI
- Anthropic
- Databricks
- Snowflake
- Palantir
- Datadog
- Uber
- Airbnb
- DoorDash
- Lyft
- Spotify
- Snap
- TikTok
- X (Twitter)
- Roblox
- Stripe
- Coinbase
- Robinhood
- PayPal
- Block
- Visa
- Bloomberg
- Salesforce
- Oracle
- Adobe
- Atlassian
- Shopify
- ServiceNow
- Workday
- Dropbox
- Cloudflare
- IBM
- Cisco
- Intel
- Qualcomm
- Tesla
- Goldman Sachs
- JPMorgan Chase
- Capital One
- Walmart
Start free on Cariara · Coding problems · System design studio