Microsoft Software Engineer Interview Questions

Microsoft Software Engineer interview questions typically emphasize algorithmic problem solving, clear coding, and effective communication more than trivia. What’s distinctive is the blend of timed coding rounds that test data structures and algorithms, role-appropriate design questions (object‑oriented or system design for senior levels), and behavioral threads woven through every conversation. Interviewers look for clean, testable code, complexity trade‑offs, debugging and testing habit, and evidence you can collaborate under pressure. Good interview preparation therefore balances technical practice with storytelling and clarity. Expect a staged process: resume/recruiter screen, an online or phone technical assessment, then a loop of 4–5 interviews (45–60 minutes each) that may include coding, design, and behavioral evaluation; some candidates also meet a final senior reviewer. To prepare, practice timed coding in a plain editor, rehearse system design sketches and trade‑offs, and develop concise STAR stories showing ownership and impact. Focus on fundamentals (arrays, trees, graphs, complexity, basics of systems), narrate your thought process, ask clarifying questions, write and test simple examples, and debrief after mocks to iteratively improve.

129 Questions 1 Company08.03.2026
Showing 20 results
Role
Microsoft logo
Microsoft
Hard
Software Engineer

Compute discounted prices and full-price indices

You are given an array prices of length \(n\). Items are sold from left to right, and each item’s final selling price is computed as follows: For item...

Coding & Algorithms
17
0
117 people solved
Mar 1, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Reconstruct DNA from tagged fragments

This question evaluates understanding of sequence reconstruction, graph modeling, and traversal/orientation constraints, focusing on ordering labeled ...

Coding & Algorithms
7
0
128 people solved
Mar 1, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Implement Matrix Move and Logger

This question evaluates array manipulation and in-place algorithm design for handling overlapping submatrix moves, along with data-structure and time-...

Coding & Algorithms
4
0
41 people solved
Feb 22, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Design a high-scale URL shortener

This question evaluates a candidate's ability to design scalable, high-throughput distributed systems with emphasis on URL mapping, storage and indexi...

System Design
8
0
91 people solved
Feb 12, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Remove duplicates in-place from unsorted array

This question evaluates understanding of in-place array manipulation, duplicate removal, and algorithmic analysis under strict extra-space constraints...

Coding & Algorithms
8
0
86 people solved
Feb 12, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Compute product of array except self

This question evaluates understanding of array manipulation, modular arithmetic, and algorithmic optimization by requiring computation of per-element ...

Coding & Algorithms
2
0
42 people solved
Feb 11, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Implement idempotent request handling with idempotency keys

This question evaluates understanding of idempotency semantics, idempotency-key handling, concurrency control, synchronization, and in-memory TTL-base...

Coding & Algorithms
5
0
43 people solved
Feb 11, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Fill rooms with nearest-gate distance

You are given an m×n grid representing a building floor plan: - -1 = wall/blocked cell - 0 = gate - A large positive number (e.g., INF = 2^31-1) = emp...

Coding & Algorithms
6
0
58 people solved
Feb 7, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Extract stream prefix before stop token

This question evaluates streaming string processing, incremental substring detection across chunk boundaries, and memory-efficient algorithm design fo...

Coding & Algorithms
3
0
62 people solved
Feb 1, 2026
Microsoft logo
Microsoft
Medium
Software EngineerNew Grad Locked

Build a CSV Query Engine

This question evaluates proficiency in text parsing, data modeling, and implementing in-memory query semantics, including CSV parsing rules, type infe...

Coding & Algorithms
5
0
41 people solved
Jan 31, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Compute distance of each node to a cycle

This question evaluates proficiency in graph algorithms, including understanding unicyclic graph structure, cycle identification, and computing minimu...

Coding & Algorithms
4
0
85 people solved
Jan 9, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Validate a JSON-like string

This question evaluates parsing and string-processing skills, focusing on structural validation of JSON-like text including matching and nesting of br...

Coding & Algorithms
10
0
134 people solved
Jan 6, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Check palindrome and find next larger palindrome

This question evaluates proficiency in string and numeric manipulation, specifically palindrome detection and generation of the next strictly larger n...

Coding & Algorithms
4
0
44 people solved
Jan 3, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Assemble DNA payload strings from tagged fragments

You are given a list of DNA-like fragments. Each fragment is a tuple: - start_tag: string - end_tag: string - payload: string A valid DNA chain is for...

Coding & Algorithms
14
0
224 people solved
Dec 15, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find longest substring without repeating characters

Problem Given a string s, return the length of the longest contiguous substring that contains no repeated characters. Input - s: a string (may contain...

Coding & Algorithms
3
0
65 people solved
Nov 25, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Design local sports team recommendation system

Design a recommendation system that suggests local sports teams to users. High-level requirements: - Recommend sports teams that are relevant to a use...

System Design
4
0
56 people solved
Nov 19, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find lowest common ancestor in tree

You are given the root of a binary search tree (BST) and two distinct nodes p and q that are guaranteed to exist in the tree. Task (BST case): - Find ...

Coding & Algorithms
6
0
56 people solved
Nov 19, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Count integer pairs satisfying 1/x + 1/y = 1/N

You are given a positive integer N (\(1 \le N \le 10^6\)). Consider the Diophantine equation: \[ \frac{1}{x} + \frac{1}{y} = \frac{1}{N}, \] where x a...

Coding & Algorithms
6
0
56 people solved
Nov 17, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find shortest substring with n unique letters

Problem You are given a string s consisting of lowercase English letters and an integer n (1 ≤ n ≤ 26). Find the length of the shortest contiguous sub...

Coding & Algorithms
5
0
46 people solved
Nov 3, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Merge multiple sorted arrays using min-heap

Problem You are given k sorted arrays of integers: - arrays[0], arrays[1], ..., arrays[k-1] - Each arrays[i] is sorted in non-decreasing order. - The ...

Coding & Algorithms
4
0
51 people solved
Oct 28, 2025

Frequently Asked Questions

How difficult are Microsoft Software Engineer interview questions?
Microsoft Software Engineer interview questions are generally challenging and designed to evaluate deep problem-solving, coding fluency, and clear communication under time pressure. Early-career roles emphasize algorithmic coding on arrays, strings, trees, graphs, and dynamic programming, while mid-to-senior levels add system design, scalability, and architecture trade-offs. Interviewers look for correctness, clean code, complexity analysis, and the ability to iterate when stuck. Expect to be evaluated for both technical depth and collaboration: interviewers grade how you explain assumptions, discuss alternatives, and test edge cases. Preparation and timed practice narrow the gap between ability and performance significantly.
What does the Microsoft hiring process look like and where do Software Engineer interview questions typically appear?
The Microsoft hiring process usually starts with a resume screen and recruiter conversation, followed by an online assessment or phone screen that focuses on coding tasks. Strong candidates proceed to a virtual onsite loop of four to five interviews that mix coding, system or design questions (more so for senior levels), and behavioral evaluations. Coding questions appear across most technical rounds; system design appears in a designated round for mid-to-senior candidates; behavioral and role-fit questions are woven into multiple interviews, including the hiring manager conversation. Interviews commonly use shared editors on Microsoft Teams or similar platforms.
How far in advance should I prepare for Microsoft Software Engineer interviews?
A realistic prep timeline is proportional to your baseline skills. If you are already comfortable with data structures and algorithms, a focused six to eight week plan of daily practice, mock interviews, and a few system-design sessions is often sufficient. If you need to build fundamentals or transition domains, plan three to six months to cover algorithms, coding fluency, and design thinking. Include recurring mock interviews to simulate pressure and weekly reviews of mistakes. In the final two weeks concentrate on timed problems, behavioral story polishing, and a light systems refresher to stay sharp without burning out.
What key technical subtopics should I master for Microsoft Software Engineer interview questions?
Prioritize core data structures and algorithms: arrays and strings, linked lists, trees, graphs, hashing, heaps, and dynamic programming, with solid time/space complexity reasoning. Practice common patterns such as two pointers, sliding windows, divide-and-conquer, and graph traversals. For mid and senior roles, add high-level system design fundamentals including APIs, data modeling, caching, consistency, and scaling trade-offs. Also refresh concurrency basics, complexity analysis, and pragmatic debugging and testing approaches. Interviewers expect clean, correct code plus the ability to explain trade-offs and edge cases clearly.
What are standout tips and common pitfalls to avoid in Microsoft Software Engineer interviews?
Standout tips include clarifying requirements before coding, verbalizing your thought process, proposing multiple approaches, and iterating from a correct simple solution to optimized versions. Use clear variable names, handle edge cases, and write tests or example runs when possible. Common pitfalls are rushing into code without a plan, staying silent when stuck, ignoring interviewer hints, over-optimizing prematurely, and failing to communicate trade-offs in design questions. For behavioral rounds, avoid vague anecdotes; give concise, impact-focused stories that show ownership, collaboration, and learning.

Explore more Microsoft Software Engineer interview questions

Real questions from candidate reports, grouped by topic, role and company.

By category
Other roles at Microsoft
Software Engineer questions at other companies
Browse all