Skip to main content
Back to Companies
Microsoft logo

Microsoft Interview Questions (1386)

Practice real interview problems from Microsoft

#2

Add Two Numbers

Medium✓ Solution📹 Video
Accenture+36
#6

Zigzag Conversion

Medium✓ Solution📹 Video
Amazon+18
#7

Reverse Integer

Medium✓ Solution📹 Video
Accenture+21
#8

String to Integer (atoi)

Medium✓ Solution📹 Video
Accenture+20
#11

Container With Most Water

Medium✓ Solution📹 Video
Accenture+57
#12

Integer to Roman

Medium✓ Solution📹 Video
Accenture+30
#15

3Sum

Medium✓ Solution📹 Video
Accenture+56
#16

3Sum Closest

Medium✓ Solution📹 Video
Amazon+10
#18

4Sum

Mediumâś“ Solution
Accenture+19
#19

Remove Nth Node From End of List

Medium✓ Solution📹 Video
Accenture+17
#22

Generate Parentheses

Medium✓ Solution📹 Video
Accenture+39
#29

Divide Two Integers

Medium✓ Solution📹 Video
Amazon+7
#31

Next Permutation

Medium✓ Solution📹 Video
Accenture+31
#38

Count and Say

Mediumâś“ Solution
Amazon+12
#39

Combination Sum

Medium✓ Solution📹 Video
Airbnb+25
#40

Combination Sum II

Medium✓ Solution📹 Video
Adobe+14
#43

Multiply Strings

Medium✓ Solution📹 Video
Amazon+16
#45

Jump Game II

Medium✓ Solution📹 Video
Adobe+25
#46

Permutations

Mediumâś“ Solution
Agoda+24
#47

Permutations II

Medium✓ Solution📹 Video
Amazon+8
#48

Rotate Image

Mediumâś“ Solution
Accenture+35
#49

Group Anagrams

Medium✓ Solution📹 Video
Accolite+86
#50

Pow(x, n)

Medium✓ Solution📹 Video
Accenture+21
#54

Spiral Matrix

Mediumâś“ Solution
Accenture+49
#55

Jump Game

Medium✓ Solution📹 Video
Adobe+32
#56

Merge Intervals

Medium✓ Solution📹 Video
Accenture+111
#57

Insert Interval

Medium✓ Solution📹 Video
Amazon+15
#59

Spiral Matrix II

Medium✓ Solution📹 Video
Adobe+10
#64

Minimum Path Sum

Medium✓ Solution📹 Video
Amazon+16
#71

Simplify Path

Medium✓ Solution📹 Video
Amazon+23
#72

Edit Distance

Medium✓ Solution📹 Video
Amazon+23
#73

Set Matrix Zeroes

Medium✓ Solution📹 Video
Amazon+21
#74

Search a 2D Matrix

Medium✓ Solution📹 Video
Adobe+18
#75

Sort Colors

Medium✓ Solution📹 Video
Agoda+36
#77

Combinations

Medium✓ Solution📹 Video
Amazon+7
#78

Subsets

Medium✓ Solution📹 Video
Agoda+20
#79

Word Search

Medium✓ Solution📹 Video
Accenture+35
Page 1 of 16

About Microsoft Coding Interviews

Microsoft’s engineering interviews focus on practical problem solving, clean code, and strong data structure fundamentals. Whether you are applying for Software Engineer, SDE II, or internship roles, the company looks for candidates who can break down real-world problems and implement efficient solutions. Microsoft interviews typically combine coding, system design (for experienced roles), and behavioral evaluation aligned with the company’s growth mindset culture.

The coding portion of a Microsoft coding interview usually tests your understanding of core data structures and algorithms. Candidates are expected to write production-quality code, discuss trade-offs, and clearly explain their approach. Interviewers also value collaboration — they often treat the session like a problem-solving discussion rather than a silent coding test.

Across real Microsoft interviews, the most common DSA topics include:

  • Arrays and strings problem solving
  • Hash maps and hash sets
  • Binary trees and binary search trees
  • Graph traversal (BFS and DFS)
  • Dynamic programming and recursion
  • Sliding window and two-pointer techniques

Difficulty typically spans a mix of easy and medium questions, with occasional hard problems for experienced roles. Strong emphasis is placed on writing optimized solutions and explaining time and space complexity.

FleetCode helps you prepare using 1352 real Microsoft interview questions collected from past candidate experiences. Problems are organized by difficulty and topic, allowing you to focus on the patterns Microsoft frequently asks. With solutions available in Python, Java, and C++, you can practice like a real interview and systematically build the skills needed to succeed in Microsoft’s technical interviews.

Interview Tips for Microsoft

Preparing for a Microsoft coding interview requires more than memorizing solutions. Microsoft evaluates how clearly you think, communicate, and improve a solution step by step.

Typical Microsoft interview format:

  • Recruiter screen: A short conversation about your background and role fit.
  • Technical phone screen: Usually one coding problem focused on data structures or algorithms.
  • Onsite or virtual loop (4–5 rounds): Multiple coding interviews, one behavioral interview, and sometimes a system design round for experienced candidates.
  • Bar raiser / hiring manager discussion: Evaluates collaboration, problem solving approach, and culture fit.

Most Microsoft coding rounds last 45–60 minutes. You are expected to clarify requirements, discuss edge cases, write working code, and optimize it if possible.

Common problem categories asked at Microsoft include:

  • Arrays and string manipulation
  • Binary trees and tree traversal
  • Hash table based lookups
  • Graph problems using BFS or DFS
  • Dynamic programming for optimization problems
  • Intervals, heaps, and sliding window patterns

Preparation strategy that works well for Microsoft:

  • Master core DSA patterns instead of memorizing individual questions.
  • Practice explaining your thought process out loud while coding.
  • Focus on writing clean, readable code rather than extremely short solutions.
  • Review time and space complexity for every solution.

Common mistakes candidates make:

  • Jumping straight into coding without clarifying the problem.
  • Ignoring edge cases such as empty inputs or duplicates.
  • Not testing their solution with sample inputs.
  • Overcomplicating problems that have simpler approaches.

For most candidates, 8–12 weeks of consistent practice solving Microsoft-style problems is enough to build confidence. Practicing the 1352 Microsoft interview questions on FleetCode will help you recognize common patterns and significantly improve your chances of clearing the coding rounds.