Microsoft vs Oracle Interview Questions

Microsoft lists 192 LeetCode interview questions while Oracle lists 314. They share 126 problems — 66% of Microsoft's bank and 40% of Oracle's. Focus on the overlap first, then drill into 66 Microsoft-only and 188 Oracle-only questions.

Read the full Microsoft vs Oracle preparation guide →

Overview

Microsoft

192 questions

Easy 55Medium 109Hard 28
Oracle

314 questions

Easy 61Medium 194Hard 59

Preparation Strategy

Step 1 — Shared core: Solve the 126 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Microsoft and Oracle.

Step 2 — Company-specific depth: Add Microsoft-specific problems like Create Hello World Function, K-th Smallest in Lexicographical Order, Max Consecutive Ones and Oracle-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: Oracle skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Microsoft
55
Oracle
61
Medium
Microsoft
109
Oracle
194
Hard
Microsoft
28
Oracle
59

Top Shared Topics

126 Shared Questions

High-priority problems to practice for both Microsoft and Oracle.

ProblemDifficulty
Two SumEasy
Merge Sorted ArrayEasy
Longest Substring Without Repeating CharactersMedium
Add Two NumbersMedium
Longest Palindromic SubstringMedium
Trapping Rain WaterHard
Single Element in a Sorted ArrayMedium
Merge IntervalsMedium
Median of Two Sorted ArraysHard
Valid ParenthesesEasy
3SumMedium
Maximum SubarrayMedium
Group AnagramsMedium
Search in Rotated Sorted ArrayMedium
Reverse Nodes in k-GroupHard
Merge Two Sorted ListsEasy
Roman to IntegerEasy
Spiral MatrixMedium
Climbing StairsEasy
Container With Most WaterMedium
Rotate ImageMedium
Palindrome NumberEasy
Merge k Sorted ListsHard
Sort ColorsMedium
Longest Common PrefixEasy
Remove Duplicates from Sorted ArrayEasy
Set Matrix ZeroesMedium
Reverse IntegerMedium
Letter Combinations of a Phone NumberMedium
Number of IslandsMedium

Showing top 30 of 126 shared problems.

Unique to Microsoft (66)

Problems in Microsoft's list that do not appear at Oracle.

ProblemDifficulty
Create Hello World FunctionEasy
K-th Smallest in Lexicographical OrderHard
Max Consecutive OnesEasy
Recyclable and Low Fat ProductsEasy
Remove ElementEasy
Minimum Path SumMedium
String to Integer (atoi)Medium
Find the Index of the First Occurrence in a StringEasy
Unique PathsMedium
Search Insert PositionEasy
4SumMedium
Single NumberEasy

Unique to Oracle (188)

Problems in Oracle's list that do not appear at Microsoft.

ProblemDifficulty
Top K Frequent ElementsMedium
Minimum One Bit Operations to Make Integers ZeroHard
LFU CacheHard
Asteroid CollisionMedium
Remove All Adjacent Duplicates in String IIMedium
Minimum Absolute DifferenceEasy
Find Valid Pair of Adjacent Digits in StringEasy
Count Pairs Of Similar StringsEasy
Maximize Value of Function in a Ball Passing GameHard
Binary Tree Right Side ViewMedium
Design Authentication ManagerMedium
Decode StringMedium

Frequently Asked Questions

How many LeetCode questions do Microsoft and Oracle share?

Microsoft and Oracle share 126 LeetCode interview questions. 66 problems appear only in Microsoft's list and 188 appear only in Oracle's list.

What topics overlap most between Microsoft and Oracle?

The most common shared topics between Microsoft and Oracle are Array (17 shared questions), Two Pointers (7 shared questions), String (7 shared questions), Hash Table (6 shared questions), Math (6 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Microsoft or Oracle?

Microsoft has 55 Easy, 109 Medium, and 28 Hard questions. Oracle has 61 Easy, 194 Medium, and 59 Hard questions. Oracle has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Microsoft and Oracle?

Start with the 126 shared problems since they cover what both companies ask most often. Then add 20 Microsoft-specific and 20 Oracle-specific questions to round out your prep.

Explore More