Microsoft OA Questions 2022: What Candidates Actually Saw

Last updated: May 2026

104+ Microsoft online assessment questions reported by candidates who took the OA in 2022. Sourced from 1Point3Acres, LeetCode, Blind, Glassdoor, and Reddit. Data grows as new reports are added.

Microsoft OA Format in 2022

The Microsoft online assessment has followed a consistent format across multiple hiring cycles. Based on 2022 reports in the database, candidates typically see 2 to 3 algorithmic coding problems delivered through a proctored online platform (most commonly HackerRank). Some roles include additional behavioral or work-simulation components after the coding section.

Time limits reported by candidates range from 70 to 110 minutes for the full assessment. The coding problems are auto-graded, so edge case handling and runtime efficiency both matter. Partial credit is available on some platforms if your solution passes a subset of test cases.

Real Microsoft OA Questions from 2022

Microsoft OA

arrays leetcode

You are given N building blocks each of which has a height H. weight W. You want to build a tower by stacking up blocks to reach a height of...

View

Microsoft Online Assessment

strings leetcode

Given an integer N, return the maximun posible value obtained by deleting \'3\' digit from the decimal representation of N. N will have atleast one \'3\'.Ex: N = 13938 returns 1938 N...

View

Microsoft OA Questions

math leetcode

1.)Largest Possible Square For Cut Sticks: Given two Integers, cut them so that they form 4 sticks of same length(i.e. a square) and length of the side is maximized.(we can have...

View

Microsoft Onsite [Reject]

easy other leetcode

After getting help from tons of interview posts and discussions, I decided to share my interview experience. I gave an onsite for the hiring event. Prior to this, I was given...

View

Microsoft OA | Senior SDE | Jan 2022 | Codility | Pass

math leetcode

<ins>**Q:**</ins> Given a binary string of 0s and 1s, you need to make integer converted string to zero. you are allowed to make the following operation 1. If n is...

View

Microsoft online OA

matrix leetcode

I am expecting answer in java 8. // you can also use imports, for example: import java.util.*; // you can write to stdout for debugging purposes, e.g. // System.out.println("this is a debug message"); class...

View

Microsoft Codility Ireland

easy stacks leetcode

Question 1: Easy Question 2 : https://warosu.org/g/thread/S71955971 Question 3 : https://codility.com/media/train/solution-stone-wall.pdf

View

Microsoft | OA | SDE I | Graphs

graphs leetcode

There are N cities. Cities are connected by roads .(Basically given a graph). K of the cities has a hospital(Given an array of size K). Time taken to reach a...

View

Interview Microsoft SE II Rejected

hard trees leetcode

OA on Codility Round 1-> first Interviewer discussed about my current work which i explained clearly, got two coding questions I was asked to write the code on codility Q1. merge two sorted...

View

Microsoft Codility Online Assessment

algorithms leetcode

Unique Integers That Sum Up To 0 2. Max number of words in a sentence. Input is a paragraph (String) and each sentence is delimited by ?.! 3. Number of right...

View

Microsoft SDE 2 interview | No hire

medium arrays leetcode

I had my round 1 of Microsoft, and the interviewer gave codility link to print all the subarrays with sum zero. Although it is only a LC medium problem, I...

View

Microsoft | OA | Return max frequent number

hash table leetcode

You need to implement the following interface: public interface FindMaxFreqNumber { \tvoid add(int num); // adds a number to the sequence \tvoid removeOldest(); // removes the oldest inserted number \tint getMaxFreqNumber(); // returns...

View

Microsoft codility august 2022

arrays leetcode

Given a transaction string "BAABA" where B indicates there is a transfer of money from A to B and A indicated there is a transfer of money from B to...

View

Microsoft Online Assessment NOV 2022 - 85 min 2 Question

math leetcode

Q1: you are given a string S of length N which encodes a non negative number V in a Binary Form. Two types of operation may be performed on it...

View

Microsoft | SDE I/II | Atlanta | Feb 2022 [Waiting, but most probably rejected]

hard graphs leetcode

Work experience - 2 years at a robotics startup with a flex role, did a lot of stuff as required Recruiter contacted because I graduated from a reputed university # Online Assessment...

View

Microsoft | SDE 1 (L60) | Bangalore | Offer

easy dynamic programming leetcode

Status: 1.6 YOE, Tier-3 College CS Position: SDE 2 at a Mid Tier PBC Location: Bangalore Date: November 2021 Applied via Referral by a Microsoft employee who was my senior in college. Got a call...

View

Microsoft | L60| Bangalore | Jan-2022

hard system design leetcode

Status: 2.5 yrs of work ex Position: Sde 3 at renowned company. The first round was a codility test comprising of 3 questions.(Medium-Hard LC Questions) I got a call from the recruiter to...

View

Microsoft | SDE2 | Bangalore | Interview experience | Online Assessment [Reject]

graphs leetcode

Applied through HR Contact in Linkedin, got codility test link within 15 days of first call with HR. Test Date: 5 Jan 2022 Round 1 \u2013 Online Assessment Number of questions: 2 Duration: 60...

View

MICROSOFT | SSE Interview Experience | Bangalore

medium graphs leetcode

Got a call In Feb 1st week to complete the codility round in a couple of days so that they can move forward with the interviews. OA : 3 Qtns ,...

View

Microsoft | L61 | Bangalore | Feb 2022

easy system design leetcode

YOE: 3 .6 years Current Org: Fintech Online Assessment: Codility Test with 2 questions to be done in 1 and a half hour time. \tDon\'t remember the exact descriptions but they were slightly as...

View

Topic Breakdown (2022 OA)

Topics reported by candidates who took the Microsoft OA in 2022:

system design (18) arrays (15) algorithms (13) strings (9) math (6) graphs (6) dynamic programming (4) trees (3)

Difficulty Breakdown (2022 OA)

33

easy

11

hard

8

medium

Difficulty labels are reported by candidates or inferred from LeetCode ratings.

How to Prepare for the Microsoft OA

The Microsoft OA is a timed, auto-graded coding test. Preparation is different from interview prep: you need to optimize for both correctness and speed, since partial credit requires passing test cases, not just showing reasoning.

  • Practice timed sessions. Set a timer for 35 to 45 minutes per problem and simulate the real constraint.
  • Focus on the topic clusters that appear most in Microsoft OA reports: dynamic programming, graphs, arrays, and strings make up the majority of reported problems.
  • Read the problem constraints carefully before writing code. The constraints often reveal the expected time complexity and algorithm type.
  • Use the LeakCode database to review 2022 OA questions from actual candidates. Pattern recognition across multiple sightings is a stronger prep signal than any single mock problem.
  • If the OA includes a work simulation section, practice under realistic conditions. This section tests judgment and values alignment, not coding ability.

FAQ

What does the Microsoft OA look like in 2022?

Based on 2022 candidate reports, the Microsoft OA typically includes 2 to 3 coding problems and runs 70 to 110 minutes. Topics lean toward dynamic programming, graphs, arrays, and strings. Some roles include a work simulation section after the coding component.

How long is the Microsoft OA?

Most candidates report 70 to 90 minutes for the coding component. Roles with additional work simulation sections extend the total time to 110 to 150 minutes. Check your invitation email for the exact time allocation for your specific role.

What platform does Microsoft use for the OA?

Microsoft uses HackerRank or its own proprietary platform depending on the role and hiring cycle. Your invitation will specify the platform. Both platforms support multiple languages including Python, Java, C++, and JavaScript.

Are these real Microsoft OA questions?

Yes. All questions in the LeakCode database come from candidate reports on 1Point3Acres, Blind, Glassdoor, Reddit, and LeetCode. They are not AI-generated. Each question links to its source where available.

Other Microsoft OA Years

Related: Microsoft OA Hub · Microsoft All Questions · All OA Questions · Data Sources