Salesforce vs Visa Interview Questions

Salesforce lists 188 LeetCode interview questions while Visa lists 146. They share 50 problems — 27% of Salesforce's bank and 34% of Visa's. Focus on the overlap first, then drill into 138 Salesforce-only and 96 Visa-only questions.

Read the full Salesforce vs Visa preparation guide →

Overview

Salesforce

188 questions

Easy 25Medium 112Hard 51
Visa

146 questions

Easy 32Medium 92Hard 22

Preparation Strategy

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

Step 2 — Company-specific depth: Add Salesforce-specific problems like Minimum Operations to Reduce an Integer to 0, String Compression, Time Needed to Rearrange a Binary String and Visa-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
Salesforce
25
Visa
32
Medium
Salesforce
112
Visa
92
Hard
Salesforce
51
Visa
22

Top Shared Topics

50 Shared Questions

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

ProblemDifficulty
LFU CacheHard
Maximum Palindromes After OperationsMedium
LRU CacheMedium
Longest Substring Without Repeating CharactersMedium
Group AnagramsMedium
Number of IslandsMedium
Merge IntervalsMedium
Longest Common SubsequenceMedium
Best Time to Buy and Sell StockEasy
Number of Divisible Triplet SumsMedium
Reverse Nodes in k-GroupHard
Longest Palindromic SubstringMedium
Trapping Rain WaterHard
Count Palindromic SubsequencesHard
Two SumEasy
Kth Largest Element in an ArrayMedium
Top K Frequent ElementsMedium
Word SearchMedium
Container With Most WaterMedium
Maximum SubarrayMedium
Median of Two Sorted ArraysHard
Odd String DifferenceEasy
Meeting Rooms IIMedium
Word LadderHard
Gas StationMedium
Sort ColorsMedium
Rotting OrangesMedium
Course ScheduleMedium
Find Median from Data StreamHard
3SumMedium

Showing top 30 of 50 shared problems.

Unique to Salesforce (138)

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

ProblemDifficulty
Minimum Operations to Reduce an Integer to 0Medium
String CompressionMedium
Time Needed to Rearrange a Binary StringMedium
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 Number of Occurrences of a SubstringMedium
Maximum Product of Three NumbersEasy
Minimize Malware SpreadHard
Distinct SubsequencesHard

Unique to Visa (96)

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

ProblemDifficulty
Text JustificationHard
Length of Longest V-Shaped Diagonal SegmentHard
Rotating the BoxMedium
Split the ArrayEasy
Minimum Operations to Write the Letter Y on a GridMedium
Find the Length of the Longest Common PrefixMedium
Block Placement QueriesHard
Create Target Array in the Given OrderEasy
Number of Black BlocksMedium
Simplify PathMedium
Number of Adjacent Elements With the Same ColorMedium
Maximum Number of Events That Can Be AttendedMedium

Frequently Asked Questions

How many LeetCode questions do Salesforce and Visa share?

Salesforce and Visa share 50 LeetCode interview questions. 138 problems appear only in Salesforce's list and 96 appear only in Visa's list.

What topics overlap most between Salesforce and Visa?

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

Which company asks harder LeetCode questions: Salesforce or Visa?

Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Visa has 32 Easy, 92 Medium, and 22 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

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

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

Explore More