IBM vs Salesforce Interview Questions

IBM lists 115 LeetCode interview questions while Salesforce lists 188. They share 40 problems — 35% of IBM's bank and 21% of Salesforce's. Focus on the overlap first, then drill into 75 IBM-only and 148 Salesforce-only questions.

Read the full IBM vs Salesforce preparation guide →

Overview

IBM

115 questions

Easy 33Medium 73Hard 9
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

Step 2 — Company-specific depth: Add IBM-specific problems like Find the Smallest Divisor Given a Threshold, Gray Code, Minimum Operations to Make Columns Strictly Increasing and Salesforce-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
IBM
33
Salesforce
25
Medium
IBM
73
Salesforce
112
Hard
IBM
9
Salesforce
51

Top Shared Topics

40 Shared Questions

High-priority problems to practice for both IBM and Salesforce.

ProblemDifficulty
3SumMedium
Exclusive Time of FunctionsMedium
Integer to RomanMedium
Roman to IntegerEasy
Best Time to Buy and Sell StockEasy
Two SumEasy
Meeting Rooms IIMedium
Minimum Absolute DifferenceEasy
Number of Divisible Triplet SumsMedium
Find Pivot IndexEasy
Merge IntervalsMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Height CheckerEasy
Largest Number After Digit Swaps by ParityEasy
Maximum Units on a TruckEasy
Valid ParenthesesEasy
Count Binary SubstringsEasy
Longest Palindromic SubstringMedium
Maximum SubarrayMedium
Spiral MatrixMedium
Group AnagramsMedium
Validate Binary Search TreeMedium
Subarray Product Less Than KMedium
Trapping Rain WaterHard
Product of Array Except SelfMedium
Backspace String CompareEasy
Number of Operations to Make Network ConnectedMedium
Longest Increasing SubsequenceMedium
Subarray Sum Equals KMedium

Showing top 30 of 40 shared problems.

Unique to IBM (75)

Problems in IBM's list that do not appear at Salesforce.

ProblemDifficulty
Find the Smallest Divisor Given a ThresholdMedium
Gray CodeMedium
Minimum Operations to Make Columns Strictly IncreasingEasy
Fizz BuzzEasy
Count Ways to Group Overlapping RangesMedium
Rotate ImageMedium
Minimum Operations to Make All Array Elements EqualMedium
Minimum Operations to Make Median of Array Equal to KMedium
The kth Factor of nMedium
Activity ParticipantsMedium
Maximum Profitable Triplets With Increasing Prices IMedium
Find The First Player to win K Games in a RowMedium

Unique to Salesforce (148)

Problems in Salesforce's list that do not appear at IBM.

ProblemDifficulty
Time Needed to Rearrange a Binary StringMedium
LFU CacheHard
Closest Equal Element QueriesMedium
Smallest Substring With Identical Characters IHard
Smallest Substring With Identical Characters IIHard
Remove Adjacent Almost-Equal CharactersMedium
Maximum Palindromes After OperationsMedium
Maximum Number of Occurrences of a SubstringMedium
Maximum Product of Three NumbersEasy
Minimize Malware SpreadHard
Distinct SubsequencesHard
Power Grid MaintenanceMedium

Frequently Asked Questions

How many LeetCode questions do IBM and Salesforce share?

IBM and Salesforce share 40 LeetCode interview questions. 75 problems appear only in IBM's list and 148 appear only in Salesforce's list.

What topics overlap most between IBM and Salesforce?

The most common shared topics between IBM and Salesforce are Array (19 shared questions), String (9 shared questions), Sorting (8 shared questions), Two Pointers (7 shared questions), Hash Table (7 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: IBM or Salesforce?

IBM has 33 Easy, 73 Medium, and 9 Hard questions. Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both IBM and Salesforce?

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

Explore More