Microsoft

Microsoft Software Engineer Onsite Coding Questions

668+ questions from real Microsoft Software Engineer Onsite Coding rounds, reported by candidates who interviewed there.

668
Questions
8
Topic Areas
10+
Sources

What does the Microsoft Onsite Coding round test?

The Microsoft onsite coding round is the core technical evaluation. Software Engineer candidates typically see 2-3 algorithm and data structure problems. Problems range from medium to hard difficulty, and interviewers evaluate both correctness and code quality.

Top Topics in This Round

Microsoft Software Engineer Onsite Coding Questions

Microsoft Onsite

Coding Other 2021

For Microsoft Redmond location- 1. Implement Queue using Stacks: https://leetcode.com/problems/implement-queue-using-stacks/ 2. Spiral Matrix: https://leetcode.com/problems/spiral-matrix/ 3. Find Winner on a Tic Tac Toe Game: https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/ 4. LRU Cache: https://leetcode.com/problems/lru-cache/

Microsoft Onsite

Binary Tree 2020

Find the lowest common ancestor of a binary tree which has links to its parents. It is a variation of this question: https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/ public class TreeNode { int val; TreeNode left; ...

Design a directory class which has properties like Subdirectory, Files etc and FileLinkPath. Write a function Copy Directory that gets the src directory and filePath as input. Please ensure that the filelinkpath...

With given coordinates of the points x1,y1 and x2,y2 draw a line between the points. For simplicity assume both the points lie in first quadrant. Would anyone like to discuss how...

## Coding: Implement K-Means Clustering Given `n` 2D points `points[i] = (x_i, y_i)` and a number of clusters `k`, implement k-means and output the cluster label for each point. ### Task Implement s

### Problem Overview - Task: maximize the number of different cars produced in a month using two assembly lines with limited hours. - Input: array H where H[K] is hours for car K, and integers X and Y

Microsoft Core AI(Foundry) interview loop - What to expect?

Onsite,System Design,Ml,Preparation 2026

Hey guys, I have a 4 round interview coming up for Software Engineer role in the Foundry team. Has anyone here completed the loop before for the core AI org? I would love to hear from anyone who’s gon

Microsoft SWE 2 offer timeline (Redmond)

Offer,Timeline,Recruiter 2026

Hi, I completed my full loop for Microsoft on March 25 and still haven’t heard back even though the HM said they are trying to hire fast and asked how soon I would be available. Status on portal still

Is it positive sign ?

Offer,Recruiter,Timeline 2026

Location : USA I received feedback from the Microsoft recruiter indicating that my interview loop received positive feedback. Although the specific position I interviewed for has been filled with anot

This post was last edited by Anonymous on 2025-09-23 19:56. Implementation of the Rate Limit Algorithm 💊雾尔 物伞雾 A round of behavioral questions + introduction of my project. I applied for a long time,

windows组招,3轮面试,有很多反向Q&A时间 第一轮:面试官自己出的题,given an integer grid and a circle diameter, mark the integers within the circle diameter and return the updated grid. 第二轮:rate limiter,followup是without changing

Microsoft Software Engineer Onsite Interview Experience in September

Sorting,Strings,Lru,System Design,Behavioral 2025

Posting my roommate's interview experience from last month. Finding a job in under 5 years is so difficult. She finally got an interview but failed. She's short on points, so please be lenient. The fo

Microsoft Onsite Interview Experience: 3 Technical + 1 AA Round

System Design,Low Level Design,Behavioral 2025

I completed three strong technical rounds for Microsoft, achieving ratings of "Strong Hire" in the first two (DSA/LLD and System Design) and "Hire" in the third. However, during the final AA techno-be

Microsoft SWE-2 Azure Team Onsite Interview Experience 2024

System Design,Binary Tree,Trie,Sorting,Queue,Low Level Design 2025

**Application and Initial Screening** Following an application via the Microsoft Career Portal for a role on the Azure team, the process began with a recruiter screen and a HackerRank test. Both codin

Microsoft SWE 2 Onsite Interview Experience and Questions

Arrays,Sliding Window,Bfs,Heap,System Design 2025

**Microsoft Hiring Drive (October 31st)** **Round 1: Coding** Two Data Structures and Algorithms questions were asked: 1. **Max Consecutive Ones III:** Find the maximum number of consecutive 1s in a b

Microsoft Software Engineer Onsite Interview — Number of Rounds

General Experience,System Design,Behavioral 2025

I recently completed the Microsoft interview process, which consisted of one HackerRank Online Assessment followed by three one-on-one rounds covering coding, system design, and behavioral topics. Alt

Microsoft L61 SDE2 (SSE) Onsite Interview Experience 2025

Lld,Binary Tree,System Design,Concurrency,Behavioral 2025

**Date:** November 7, 2025 **Experience:** 4.5 Years **Structure:** 4 Rounds (3 consecutive, 1 separate) **Verdict:** Selected **Round 1: Coding** * **Problem:** Design a "PhotoCache," functioning as

A recruiter scheduled two interview rounds for Friday, November 28th, with a potential third round listed as an "AA round: real time allocation" pending. **First Round** The session focused on a singl

Uber L4 (SDE-2) Onsite Interview Process and Questions

System Design,Lld,Behavioral,Heap,Oop 2025

The whole process took 8 weeks After finishing the OA(need to solve 3.5/4 ques) Week1: DSA Screening: Was Asked a Leetcode Hard Ques on Quad Tree got positive feedback and was passed to the Onsites We

Given cities n from 0 to N-1 in a doubly link manner, also given number of amenities m (0 to m-1 for each city). Also, given a matrix amenities of...

What to Expect in the Microsoft Onsite Coding Round

The Microsoft Software Engineer Onsite Coding round has a specific calibration purpose distinct from other rounds in the loop. Across 668+ verified reports on LeakCode for this exact round type, the consistent expectations: clear scoping of the problem before diving into a solution, explicit reasoning about complexity, structured handling of edge cases, and the ability to discuss trade-offs between two reasonable approaches.

Reports tagged with the Onsite Coding round at Microsoft show recurring patterns in difficulty and topic distribution. The Onsite Coding round is typically 45-60 minutes; the interviewer is calibrated against a specific rubric. The discriminator between candidates who advance and candidates who do not is rarely the final correctness of the answer. It is the path: did you clarify, did you verbalize your approach, did you handle edge cases, and did you communicate throughout.

How To Prepare for This Specific Round

Filter the questions below to the most recent reports (past 6-12 months). Questions tagged for this exact round type from this exact company at this exact role level are the highest-signal data available. Older reports may reference questions that have since rotated out of the company's pool.

Practice 4-6 representative problems from this set under timed conditions. The goal is not memorization (companies rotate questions); the goal is to internalize the patterns the interviewer typically reaches for and the depth of follow-up to expect. Reports on LeakCode also tag the typical follow-up depth at this round type, which is the discriminating signal between hire and no-hire calibration.

Onsite Coding Round Timing and Format

The Onsite Coding round at Microsoft typically runs 45-60 minutes. Use the first 2-3 minutes to clarify requirements; you should never start coding or designing without verifying the input/output format, constraints, and edge cases out loud. Use the next 5-7 minutes to verbalize your approach before writing any code. The middle 20-30 minutes are implementation. Reserve the final 10 minutes for testing with concrete examples and discussing optimization or trade-offs.

Time budget discipline is one of the most reliable senior-vs-junior discriminators in this round. Strong candidates verbalize where they are in their budget out loud ("I've used about 20 minutes, I have 15 minutes left for testing and one optimization"). This signals engineering maturity to the interviewer and creates positive feedback they can capture in writing.

Common Failure Modes in This Round

Reports tagged "no hire" at Microsoft Software Engineer Onsite Coding commonly cite: coding silently without verbalizing approach, jumping to implementation before clarifying requirements, missing edge cases (empty input, single element, very large input), producing working code that the candidate cannot refactor when asked, and failing to test their solution with concrete examples before declaring done.

The single most predictive failure mode in 2025-2026 reports: not asking clarifying questions. Interviewers at all FAANG companies are explicitly trained to weight this dimension. Strong candidates ask 3-5 clarifying questions even on problems that look obvious; weak candidates dive into code immediately. The clarifying-question check is often the first signal recorded in the interviewer's notes.

See All 668 Questions from This Round

Full question text, answer context, and frequency data for subscribers.

Get Access