LinkedIn vs Salesforce Interview Questions

LinkedIn lists 141 LeetCode interview questions while Salesforce lists 188. They share 36 problems — 26% of LinkedIn's bank and 19% of Salesforce's. Focus on the overlap first, then drill into 105 LinkedIn-only and 152 Salesforce-only questions.

Read the full LinkedIn vs Salesforce preparation guide →

Overview

LinkedIn

141 questions

Easy 25Medium 90Hard 26
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

Step 2 — Company-specific depth: Add LinkedIn-specific problems like Max Stack, Nested List Weight Sum II, All O`one Data Structure 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
LinkedIn
25
Salesforce
25
Medium
LinkedIn
90
Salesforce
112
Hard
LinkedIn
26
Salesforce
51

Top Shared Topics

36 Shared Questions

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

ProblemDifficulty
Word LadderHard
Find Leaves of Binary TreeMedium
Maximum SubarrayMedium
Max Consecutive Ones IIIMedium
Valid ParenthesesEasy
Number of IslandsMedium
Maximum Product SubarrayMedium
Search in Rotated Sorted ArrayMedium
Minimum Window SubstringHard
Exclusive Time of FunctionsMedium
Kth Largest Element in an ArrayMedium
Merge IntervalsMedium
Find Pivot IndexEasy
LRU CacheMedium
Merge Two Sorted ListsEasy
Two SumEasy
Merge k Sorted ListsHard
Palindromic SubstringsMedium
Product of Array Except SelfMedium
Find K Closest ElementsMedium
Maximum Number of Non-overlapping Palindrome SubstringsHard
Number of Divisible Triplet SumsMedium
Min StackMedium
Valid Parenthesis StringMedium
K Closest Points to OriginMedium
Combination SumMedium
Longest Palindromic SubstringMedium
Integer to RomanMedium
Course Schedule IIMedium
Number of Visible People in a QueueHard

Showing top 30 of 36 shared problems.

Unique to LinkedIn (105)

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

ProblemDifficulty
Max StackHard
Nested List Weight Sum IIMedium
All O`one Data StructureHard
Find the CelebrityMedium
Nested List Weight SumMedium
Design Authentication ManagerMedium
Shortest Word Distance IIMedium
Can Place FlowersEasy
Pow(x, n)Medium
Insert Delete GetRandom O(1)Medium
Binary Tree Upside DownMedium
Partition to K Equal Sum SubsetsMedium

Unique to Salesforce (152)

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

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 LinkedIn and Salesforce share?

LinkedIn and Salesforce share 36 LeetCode interview questions. 105 problems appear only in LinkedIn's list and 152 appear only in Salesforce's list.

What topics overlap most between LinkedIn and Salesforce?

The most common shared topics between LinkedIn and Salesforce are Array (16 shared questions), String (8 shared questions), Hash Table (6 shared questions), Dynamic Programming (6 shared questions), Stack (5 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: LinkedIn or Salesforce?

LinkedIn has 25 Easy, 90 Medium, and 26 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 LinkedIn and Salesforce?

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

Explore More