IBM vs Oracle Interview Questions
IBM lists 115 LeetCode interview questions while Oracle lists 314. They share 55 problems — 48% of IBM's bank and 18% of Oracle's. Focus on the overlap first, then drill into 60 IBM-only and 259 Oracle-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 55 overlapping problems first. These are the highest-yield questions for candidates interviewing at both IBM and Oracle.
Step 2 — Company-specific depth: Add IBM-specific problems like Gray Code, Exclusive Time of Functions, Minimum Operations to Make Columns Strictly Increasing 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
55 Shared Questions
High-priority problems to practice for both IBM and Oracle.
| Problem | Difficulty |
|---|---|
| Find the Smallest Divisor Given a Threshold | Medium |
| 3Sum | Medium |
| Integer to Roman | Medium |
| Roman to Integer | Easy |
| Best Time to Buy and Sell Stock | Easy |
| Count Ways to Group Overlapping Ranges | Medium |
| Two Sum | Easy |
| Meeting Rooms II | Medium |
| Rotate Image | Medium |
| Minimum Absolute Difference | Easy |
| The kth Factor of n | Medium |
| Merge Intervals | Medium |
| Longest Substring Without Repeating Characters | Medium |
| String Compression | Medium |
| Longest Common Prefix | Easy |
| Valid Parentheses | Easy |
| Count Binary Substrings | Easy |
| Merge Strings Alternately | Easy |
| Letter Combinations of a Phone Number | Medium |
| Longest Consecutive Sequence | Medium |
| Longest Palindromic Substring | Medium |
| Merge Sorted Array | Easy |
| Maximum Subarray | Medium |
| Spiral Matrix | Medium |
| Count Pairs Of Similar Strings | Easy |
| Longest Mountain in Array | Medium |
| Kth Missing Positive Number | Easy |
| Group Anagrams | Medium |
| Validate Binary Search Tree | Medium |
| Subarray Product Less Than K | Medium |
Showing top 30 of 55 shared problems.
Unique to IBM (60)
Problems in IBM's list that do not appear at Oracle.
Unique to Oracle (259)
Problems in Oracle's list that do not appear at IBM.
| Problem | Difficulty |
|---|---|
| Number of Islands | Medium |
| Top K Frequent Elements | Medium |
| Sliding Window Maximum | Hard |
| Merge k Sorted Lists | Hard |
| Minimum One Bit Operations to Make Integers Zero | Hard |
| LFU Cache | Hard |
| Search in Rotated Sorted Array | Medium |
| Asteroid Collision | Medium |
| Remove All Adjacent Duplicates in String II | Medium |
| Container With Most Water | Medium |
| Reverse Linked List | Easy |
| Min Stack | Medium |
Frequently Asked Questions
How many LeetCode questions do IBM and Oracle share?
IBM and Oracle share 55 LeetCode interview questions. 60 problems appear only in IBM's list and 259 appear only in Oracle's list.
What topics overlap most between IBM and Oracle?
The most common shared topics between IBM and Oracle are Array (18 shared questions), String (12 shared questions), Two Pointers (8 shared questions), Hash Table (8 shared questions), Sorting (7 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: IBM or Oracle?
IBM has 33 Easy, 73 Medium, and 9 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 IBM and Oracle?
Start with the 55 shared problems since they cover what both companies ask most often. Then add 20 IBM-specific and 20 Oracle-specific questions to round out your prep.