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
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
Top Shared Topics
8 Shared Questions
High-priority problems to practice for both Salesforce and X.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Merge Intervals | Medium |
| Trapping Rain Water | Hard |
| Merge k Sorted Lists | Hard |
| Valid Parentheses | Easy |
| Design Twitter | Medium |
| Integer to Roman | Medium |
| Masking Personal Information | Medium |
Unique to Salesforce (180)
Problems in Salesforce's list that do not appear at X.
Unique to X (43)
Problems in X's list that do not appear at Salesforce.
| Problem | Difficulty |
|---|---|
| Tweet Counts Per Frequency | Medium |
| Flatten Nested List Iterator | Medium |
| Implement Trie (Prefix Tree) | Medium |
| Insert Delete GetRandom O(1) | Medium |
| Binary Gap | Easy |
| Regular Expression Matching | Hard |
| Word Break II | Hard |
| Alien Dictionary | Hard |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| Trapping Rain Water II | Hard |
| Finding the Users Active Minutes | Medium |
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.