Salesforce vs X Interview Questions

Salesforce lists 188 LeetCode interview questions while X lists 51. They share 8 problems — 4% of Salesforce's bank and 16% of X's. Focus on the overlap first, then drill into 180 Salesforce-only and 43 X-only questions.

Overview

Salesforce

188 questions

Easy 25Medium 112Hard 51
X

51 questions

Easy 8Medium 31Hard 12

Preparation Strategy

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

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 X-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
X
8
Medium
Salesforce
112
X
31
Hard
Salesforce
51
X
12

Top Shared Topics

8 Shared Questions

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

ProblemDifficulty
LRU CacheMedium
Merge IntervalsMedium
Trapping Rain WaterHard
Merge k Sorted ListsHard
Valid ParenthesesEasy
Design TwitterMedium
Integer to RomanMedium
Masking Personal InformationMedium

Unique to Salesforce (180)

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

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

Unique to X (43)

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

ProblemDifficulty
Tweet Counts Per FrequencyMedium
Flatten Nested List IteratorMedium
Implement Trie (Prefix Tree)Medium
Insert Delete GetRandom O(1)Medium
Binary GapEasy
Regular Expression MatchingHard
Word Break IIHard
Alien DictionaryHard
Time Needed to Buy TicketsEasy
Max Points on a LineHard
Trapping Rain Water IIHard
Finding the Users Active MinutesMedium

Frequently Asked Questions

How many LeetCode questions do Salesforce and X share?

Salesforce and X share 8 LeetCode interview questions. 180 problems appear only in Salesforce's list and 43 appear only in X's list.

What topics overlap most between Salesforce and X?

The most common shared topics between Salesforce and X are Hash Table (3 shared questions), Linked List (3 shared questions), String (3 shared questions), Design (2 shared questions), Array (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Salesforce or X?

Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. X has 8 Easy, 31 Medium, and 12 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

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

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

Explore More