Now practice all your interviews before giving the real one

( Microsoft interview questions )

Microsoft interview questions, and how to answer them.

15 questions candidates report from Microsoft interviews, grouped by topic, with a short note on how to answer each kind. Then say your answers out loud in a practice interview.

5 minutes, no CV needed. A practice round, not Microsoft's own.

What Microsoft interviews ask, in our data

Our bank holds 348 coding questions, 12 system design topics and 5 behavioural topics that candidates report from Microsoft interviews. The topics that come up most: arrays & hashing (71), math & bits (55), graphs (29) and dynamic programming, 1-D (23). Of the 348 coding questions, 103 are easy, 221 medium and 24 hard.

Our data covers coding, system design and behavioural questions for Microsoft. These are practice questions based on what candidates report on public, community-kept lists, each written in our own words. RoundAlpha is not linked to Microsoft.

Coding questions
348
Easy / medium / hard
103 / 221 / 24
System design topics
12
Behavioural topics
5
Top topic
Arrays & hashing
Page data updated
29 November 2026

( Questions )

15 Microsoft questions to practise.

Arrays & hashing

  1. 1

    Two SumEasy

    Given an array of integers nums and an integer target, return the positions of the two numbers that add up to target.

  2. 2

    Longest Leading MatchEasy

    Given an array of strings strs, return the longest sequence of leading characters that appears at the beginning of every string.

Linked list

  1. 3

    Add Two NumbersMedium

    l1 and l2 are the first nodes of two linked lists. Each node holds a number, val, and a link to the node after it, next; the last node's next is null.

Sliding window

  1. 4

    Longest Unique StretchMedium

    Given a string s, return the length of the longest stretch of consecutive characters in which no character appears twice.

Dynamic programming, 1-D

  1. 5

    Longest Palindrome InsideMedium

    You are given a string s. Return the longest piece of it — a run of letters that sit next to each other in s — that reads the same forwards and backwards (a palindrome).

  2. 6

    Best Slice SumMedium

    You are given a list of whole numbers, nums, some of which may be negative. A slice is a run of one or more numbers that sit next to each other in the list.

Two pointers

  1. 7

    Biggest Water TankMedium

    A row of walls stands on flat ground, one metre apart; height[i] is the height of wall i.

  2. 8

    Trapped RainwaterHard

    A row of bars stands side by side, each 1 unit wide; height[i] is the height of bar i. After a heavy rain, water settles in the dips between the bars.

Intervals

  1. 9

    Merge RangesMedium

    You are given a list of ranges, each written as [start, end]. Merge every group of ranges that overlap or touch, and return the merged ranges sorted by their start.

System design

  1. 10

    Short links and fast redirectsEasy

  2. 11

    Cap how often a caller may hit an APIEasy

  3. 12

    Real-time messaging with delivery guaranteesMedium

Behavioural

  1. 13

    Tell me about: a time you failed, and what you changed after

    What it checks: ownership / humility.

  2. 14

    Tell me about: making progress with the requirements still unclear

    What it checks: comfort with ambiguity.

  3. 15

    Tell me about: moving work through people who don't report to you

    What it checks: influence.

Want to write the code too? The Microsoft list on our coding practice page runs your answer against hidden tests, in six languages.

Questions

Microsoft interview: questions and answers

What coding questions does Microsoft ask?

Our bank holds 348 coding questions, 12 system design topics and 5 behavioural topics that candidates report from Microsoft interviews. The topics that come up most: arrays & hashing (71), math & bits (55), graphs (29) and dynamic programming, 1-D (23). This page shows 15 of them, grouped by topic.

How hard are Microsoft coding questions?

Of the 348 coding questions, 103 are easy, 221 medium and 24 hard. The level you meet depends on the role and your experience, so practise easy and medium ones until you can explain them out loud, then add hard ones.

Are these the real Microsoft interview questions?

They are practice questions based on what candidates report from Microsoft interviews on public, community-kept lists. Each one is written in our own words. RoundAlpha is not linked to Microsoft, and no list can promise what a given interviewer will ask.

Can I practise a Microsoft interview for free?

Yes. A new account you sign up for yourself gets one short free practice interview. Name Microsoft as the company and the interviewer leans its questions toward that company. You can choose "No CV this time", so no CV is needed. You talk out loud and get a scored report at the end.

Does Microsoft ask system design questions?

Candidates report 12 system design topics from Microsoft interviews in our data. Start with the requirements, draw the simplest working version, then say what breaks first as it grows.

Read next

Ready when you are

Say it out loud once before it counts.

A short practice interview with Microsoft named as the company, then a scored report on every answer.

5 minutes, no CV needed. A practice round, not Microsoft's own.