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.
Overview
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
Top Shared Topics
126 Shared Questions
High-priority problems to practice for both Microsoft and Oracle.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Merge Sorted Array | Easy |
| Longest Substring Without Repeating Characters | Medium |
| Add Two Numbers | Medium |
| Longest Palindromic Substring | Medium |
| Trapping Rain Water | Hard |
| Single Element in a Sorted Array | Medium |
| Merge Intervals | Medium |
| Median of Two Sorted Arrays | Hard |
| Valid Parentheses | Easy |
| 3Sum | Medium |
| Maximum Subarray | Medium |
| Group Anagrams | Medium |
| Search in Rotated Sorted Array | Medium |
| Reverse Nodes in k-Group | Hard |
| Merge Two Sorted Lists | Easy |
| Roman to Integer | Easy |
| Spiral Matrix | Medium |
| Climbing Stairs | Easy |
| Container With Most Water | Medium |
| Rotate Image | Medium |
| Palindrome Number | Easy |
| Merge k Sorted Lists | Hard |
| Sort Colors | Medium |
| Longest Common Prefix | Easy |
| Remove Duplicates from Sorted Array | Easy |
| Set Matrix Zeroes | Medium |
| Reverse Integer | Medium |
| Letter Combinations of a Phone Number | Medium |
| Number of Islands | Medium |
Showing top 30 of 126 shared problems.
Unique to Microsoft (66)
Problems in Microsoft's list that do not appear at Oracle.
| Problem | Difficulty |
|---|---|
| Create Hello World Function | Easy |
| K-th Smallest in Lexicographical Order | Hard |
| Max Consecutive Ones | Easy |
| Recyclable and Low Fat Products | Easy |
| Remove Element | Easy |
| Minimum Path Sum | Medium |
| String to Integer (atoi) | Medium |
| Find the Index of the First Occurrence in a String | Easy |
| Unique Paths | Medium |
| Search Insert Position | Easy |
| 4Sum | Medium |
| Single Number | Easy |
Unique to Oracle (188)
Problems in Oracle's list that do not appear at Microsoft.
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.