Infosys vs Salesforce Interview Questions

Infosys lists 105 LeetCode interview questions while Salesforce lists 188. They share 32 problems — 30% of Infosys's bank and 17% of Salesforce's. Focus on the overlap first, then drill into 73 Infosys-only and 156 Salesforce-only questions.

Read the full Infosys vs Salesforce preparation guide →

Overview

Infosys

105 questions

Easy 32Medium 57Hard 16
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

Step 2 — Company-specific depth: Add Infosys-specific problems like Maximum Good Subtree Score, Find Building Where Alice and Bob Can Meet, Minimum Reverse Operations 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
Infosys
32
Salesforce
25
Medium
Infosys
57
Salesforce
112
Hard
Infosys
16
Salesforce
51

Top Shared Topics

32 Shared Questions

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

ProblemDifficulty
Two SumEasy
Longest Substring Without Repeating CharactersMedium
Best Time to Buy and Sell StockEasy
Valid ParenthesesEasy
Maximum SubarrayMedium
Trapping Rain WaterHard
Product of Array Except SelfMedium
Merge IntervalsMedium
Generate ParenthesesMedium
Spiral MatrixMedium
Coin ChangeMedium
3SumMedium
Group AnagramsMedium
Kth Largest Element in an ArrayMedium
Longest Palindromic SubstringMedium
Gas StationMedium
Missing NumberEasy
Reverse Nodes in k-GroupHard
Number of IslandsMedium
Merge Two Sorted ListsEasy
Roman to IntegerEasy
Subarray Sum Equals KMedium
Median of Two Sorted ArraysHard
Combination SumMedium
Valid PalindromeEasy
Find the Duplicate NumberMedium
Koko Eating BananasMedium
Integer to RomanMedium
Maximum Product of Three NumbersEasy
Minimum Window SubstringHard

Showing top 30 of 32 shared problems.

Unique to Infosys (73)

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

ProblemDifficulty
Maximum Good Subtree ScoreHard
Find Building Where Alice and Bob Can MeetHard
Minimum Reverse OperationsHard
Count the Number of Ideal ArraysHard
Transform Array by ParityEasy
Eat Pizzas!Medium
Maximum Sum of Subsequence With Non-adjacent ElementsHard
Maximize the Minimum Game ScoreHard
Find the Number of Subsequences With Equal GCDHard
Determine the Minimum Sum of a k-avoiding ArrayMedium
Largest Number After Mutating SubstringMedium
Minimum Total Distance TraveledHard

Unique to Salesforce (156)

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

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
LRU CacheMedium
Maximum Number of Occurrences of a SubstringMedium

Frequently Asked Questions

How many LeetCode questions do Infosys and Salesforce share?

Infosys and Salesforce share 32 LeetCode interview questions. 73 problems appear only in Infosys's list and 156 appear only in Salesforce's list.

What topics overlap most between Infosys and Salesforce?

The most common shared topics between Infosys and Salesforce are Array (20 shared questions), String (9 shared questions), Hash Table (8 shared questions), Dynamic Programming (6 shared questions), Sorting (6 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Infosys or Salesforce?

Infosys has 32 Easy, 57 Medium, and 16 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 Infosys and Salesforce?

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

Explore More