Microsoft interview questions

Software engineer

Coding

  1. LRU Cache (LeetCode 146)
  2. Subarray Sum Equals K (LeetCode 560)
  3. Even Odd Tree (LeetCode 1609)
  4. Reverse Words in a String (LeetCode 151)
  5. Reverse Nodes in k-Group (LeetCode 25)
  6. Sum Root to Leaf Numbers (LeetCode 129)
  7. Regular Expression Matching (LeetCode 10)
  8. K Closest Points to Origin (LeetCode 973)
  9. Boundary of Binary Tree (LeetCode 545)
  10. Currency conversion: find the rate between two currencies from a set of known rates
  11. Min Stack (LeetCode 155)
  12. Valid Parentheses (LeetCode 20)
  13. Generate Parentheses (LeetCode 22)
  14. Find the Duplicate Number (LeetCode 287)
  15. Remove duplicates from a sorted array in place, with a follow-up on keeping repeats
  16. A variant of the minimum meeting rooms problem
  17. Merge Intervals (LeetCode 56)
  18. Trapping Rain Water (LeetCode 42)
  19. Group Anagrams (LeetCode 49)
  20. Palindrome Linked List (LeetCode 234)
  21. Design Twitter (LeetCode 355)

System design

  1. Design a distributed LRU cache, with unit tests and both high- and low-level design
  2. Design a URL shortener, including ID generation and multi-region deployment
  3. Low-level design of a music app like Spotify: classes, interfaces and enums
  4. Design a logging and password management system
  5. Design a low-latency real-time notification system
  6. Design a service that stores palindromes durably and checks whether one already exists
  7. Design a quiz web page and backend API that tests students on country names from pictures
  8. Design an interface for a credit card registration system used by many firms
  9. 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

  1. What are your top two strengths and weaknesses?
  2. Tell me about a time you failed and what you learned from it.
  3. Tell me about a conflict with a colleague and how you resolved it.
  4. Walk me through a complicated problem you solved at work, such as how you handled caching or scaling.
  5. Tell me about a time you applied feedback you received.
  6. Describe how you adapted your approach when a situation changed.
  7. Tell me about a time you worked closely with others to deliver a result.
  8. How do you debug a production bug?
  9. Describe a feature you designed in your current role, the decisions you made and their trade-offs.

The loop

  1. Application review and screen: After reviewing resumes, some teams hold a short screening conversation, often with a recruiter, to decide who to interview.
  2. 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.
  3. 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.
  4. 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.
  5. 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

  1. How we hire — Microsoft Careers
  2. Interview tips — Microsoft Careers
  3. Technical interviewing — Microsoft Careers
  4. Senior Engineer's Guide to Microsoft's Interview Process and Questions — interviewing.io
  5. Interview Experience - Microsoft SDE 2 (L61) — LeetCode Discuss
  6. Microsoft SDE 2 | L61/62 | Interview Experience — LeetCode Discuss
  7. Microsoft | SDE | L60 — LeetCode Discuss
  8. Microsoft Interview Experience | SDE-II | Offer Received — LeetCode Discuss

Other companies

Start free on Cariara · Coding problems · System design studio