JPMorgan vs Salesforce Interview Questions

JPMorgan lists 78 LeetCode interview questions while Salesforce lists 188. They share 22 problems — 28% of JPMorgan's bank and 12% of Salesforce's. Focus on the overlap first, then drill into 56 JPMorgan-only and 166 Salesforce-only questions.

Read the full JPMorgan vs Salesforce preparation guide →

Overview

JPMorgan

78 questions

Easy 25Medium 45Hard 8
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

Step 2 — Company-specific depth: Add JPMorgan-specific problems like Minimum Swaps to Make Strings Equal, Determine Color of a Chessboard Square, Button with Longest Push Time 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
JPMorgan
25
Salesforce
25
Medium
JPMorgan
45
Salesforce
112
Hard
JPMorgan
8
Salesforce
51

Top Shared Topics

22 Shared Questions

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

ProblemDifficulty
Group AnagramsMedium
Count Binary SubstringsEasy
Two SumEasy
Meeting Rooms IIMedium
Best Time to Buy and Sell StockEasy
Minimum Absolute DifferenceEasy
Sliding Window MaximumHard
Longest Substring Without Repeating CharactersMedium
Longest Palindromic SubstringMedium
Valid ParenthesesEasy
Merge IntervalsMedium
LRU CacheMedium
Find Median from Data StreamHard
Distinct SubsequencesHard
Coin ChangeMedium
Top K Frequent ElementsMedium
Container With Most WaterMedium
Spiral MatrixMedium
Maximum SubarrayMedium
Last Stone WeightEasy
Roman to IntegerEasy
Trapping Rain WaterHard

Unique to JPMorgan (56)

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

ProblemDifficulty
Minimum Swaps to Make Strings EqualMedium
Determine Color of a Chessboard SquareEasy
Button with Longest Push TimeEasy
Rotate ImageMedium
Divide Players Into Teams of Equal SkillMedium
Check if Number Has Equal Digit Count and Digit ValueEasy
Reverse Odd Levels of Binary TreeMedium
Display Table of Food Orders in a RestaurantMedium
Maximum Number of Points From Grid QueriesHard
Lexicographically Smallest String After Applying OperationsMedium
Suspicious Bank AccountsMedium
Lexicographically Smallest String After a SwapEasy

Unique to Salesforce (166)

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

ProblemDifficulty
Minimum Operations to Reduce an Integer to 0Medium
String CompressionMedium
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
Subarray Product Less Than KMedium
Maximum Palindromes After OperationsMedium
Maximum Number of Occurrences of a SubstringMedium
Maximum Product of Three NumbersEasy

Frequently Asked Questions

How many LeetCode questions do JPMorgan and Salesforce share?

JPMorgan and Salesforce share 22 LeetCode interview questions. 56 problems appear only in JPMorgan's list and 166 appear only in Salesforce's list.

What topics overlap most between JPMorgan and Salesforce?

The most common shared topics between JPMorgan and Salesforce are Array (13 shared questions), String (7 shared questions), Hash Table (6 shared questions), Dynamic Programming (6 shared questions), Sorting (5 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: JPMorgan or Salesforce?

JPMorgan has 25 Easy, 45 Medium, and 8 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 JPMorgan and Salesforce?

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

Explore More