Microsoft OA Questions 2023: What Candidates Actually Saw

Last updated: May 2026

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

Microsoft OA Format in 2023

The Microsoft online assessment has followed a consistent format across multiple hiring cycles. Based on 2023 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 2023

Microsoft OA

arrays leetcode

https://leetcode.com/problems/remove-digit-from-number-to-maximize-result/ repot: https://leetcode.com/problems/sign-of-the-product-of-an-array/ https://leetcode.com/problems/minimum-time-to-make-rope-colorful/

View

Microsoft OA

arrays leetcode

There is an array A made of N integers. Your task is to choose as many integers from A as possible so that, when they are put in ascending order,...

View

Microsoft OA

strings leetcode

Need help Urgent There is a string representing a date in "MM-DD" format, where MM denotes a month in a two-digit format and DD denotes a day in a...

View

Microsoft | OA

greedy leetcode

Q-1. make smallest lexicographically string with given number of A,B and C count such that no three consecutive elements are same Eg., A=1, B=3, C=0 -> babb PS: Input will be given...

View

Microsoft OA Question

arrays leetcode

Given a permutation array P (1-based indexing), find the total number of steps required to sort the same array using the permutation array. Constraints: n = arr.length 2<=n<=10^5 Example: Say P =[2,5,4,3,1] Copy...

View

Microsoft Online Assessment

dynamic programming leetcode

Two questions were asked, on codility platform. 80 mins were given. 1. Given hisorical data of transaction of last N days, calculate the maximum profit on buying and selling the assets....

View

Microsoft Online Assessment

greedy leetcode

Write a program where a board is made of 2 rows and n columns. The board is represented by 2 strings row1 and row2, made of characters "R", "W" and/or...

View

Microsoft OA question

dynamic programming leetcode

There is a array.In that Array either you can take first two element ,first and last element or alst two element ....and remove those element you have a P-value ...P-value represnet...

View

Microsoft oa

arrays leetcode

There is a line chart consiting of N points (numbered from 0 to N-1) connecte by line segments. The kth point has coordinates x = k, y = Y[k]. There...

View

Microsoft oa

greedy leetcode

You are given an array A consisting of N integers (N is divisble by 3) and an integer K. In one move, you can decrease or increase any element by...

View

Microsoft OA help

arrays leetcode

Given an array of length n. find the maximum pair sum which don\'t have common digits. Example : n=6 , nums=[53,1,36,103,53,5] in this case answer is 103+5 as they don\'t have...

View

Microsoft OA help

dp leetcode

You are given an array Eg [1,2,3,4,5,6] and You can merge 2 adjacent numbers only once. Find the max sum obtained among all the pairs Eg [1,2,3,4,5,6] will give pairs...

View

Microsoft L60 Interview Experience

easy system design leetcode

Referral from a senior in October 2nd week. YOE: 2.2 Round 1: OA (1 Hour 10 Mins) 2 Leetcode Easy-Medium Level Questions Round 2: DSA (1 hour) Ques 1: Leetcode Medium Level Question on...

View

Microsoft Frequently Asked Questions (FAQs)

stack leetcode

You are given an array of strings tokens that represents an arithmetic expression in a Reverse Polish Notation. 2. Combination Sum with a twist. 3. Bulls and Cows 4. You are given...

View

Microsoft OA [Rejected]

graph leetcode

In my first day in my new flat, I found that the doors of all flats are forming a straight line and all doors are equidistant from each another. At...

View

Microsoft OA: 75 minutes two questions

strings leetcode

please list solution in Java/ C#/C++ given a string s give the minimum amount of substrings without repeaing characters, for example "word" the answer will be 1 as "word" dont have...

View

OA compilations

hard hash table leetcode

Given an array N, return true if it is possible we can pair all the numbers in the array with equal values. E.g N = [1, 2, 2, 1] ->...

View

Microsoft Internship OA '23

graph leetcode

I am given undirected graph that consists of N vertices numbered from 0 to N-1 connected with M edges.The graph is described by two arrays, A and B both of...

View

Ion OA

graph leetcode

You are given an undirected tree and can apply at most koperations on it. In one operation, remove a leaf vertex and its adjacent edge. A leaf vertex is a...

View

Microsoft Online Assessment Test 2023-2024

dp leetcode

A patient needs rehabilitation within next N days(numbered from 0 to N-1). The rehabilitation consists of X sessions. For every rehabilitation session,other than the last one,the next session is...

View

Topic Breakdown (2023 OA)

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

greedy (8) arrays (8) strings (5) graph (4) dynamic programming (4) dp (3) trees (2) stack (2)

Difficulty Breakdown (2023 OA)

7

easy

3

hard

2

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 2023 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 2023?

Based on 2023 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