Salesforce vs Twitter Interview Questions
Salesforce lists 188 LeetCode interview questions while Twitter lists 53. They share 9 problems — 5% of Salesforce's bank and 17% of Twitter's. Focus on the overlap first, then drill into 179 Salesforce-only and 44 Twitter-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 9 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Salesforce and Twitter.
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 Twitter-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
9 Shared Questions
High-priority problems to practice for both Salesforce and Twitter.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Merge Intervals | Medium |
| Trapping Rain Water | Hard |
| Merge k Sorted Lists | Hard |
| Rotting Oranges | Medium |
| Valid Parentheses | Easy |
| Design Twitter | Medium |
| Integer to Roman | Medium |
| Masking Personal Information | Medium |
Unique to Salesforce (179)
Problems in Salesforce's list that do not appear at Twitter.
Unique to Twitter (44)
Problems in Twitter's list that do not appear at Salesforce.
| Problem | Difficulty |
|---|---|
| Regular Expression Matching | Hard |
| Multiply Strings | Medium |
| Wildcard Matching | Hard |
| Permutation Sequence | Hard |
| Pascal's Triangle | Easy |
| Word Break II | Hard |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| One Edit Distance | Medium |
| Happy Number | Easy |
| Reverse Linked List | Easy |
| Implement Trie (Prefix Tree) | Medium |
Frequently Asked Questions
How many LeetCode questions do Salesforce and Twitter share?
Salesforce and Twitter share 9 LeetCode interview questions. 179 problems appear only in Salesforce's list and 44 appear only in Twitter's list.
What topics overlap most between Salesforce and Twitter?
The most common shared topics between Salesforce and Twitter are Hash Table (3 shared questions), Linked List (3 shared questions), Array (3 shared questions), String (3 shared questions), Design (2 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Salesforce or Twitter?
Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Twitter has 8 Easy, 33 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 Twitter?
Start with the 9 shared problems since they cover what both companies ask most often. Then add 20 Salesforce-specific and 20 Twitter-specific questions to round out your prep.