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.

Read the full Salesforce vs Twitter preparation guide →

Overview

Salesforce

188 questions

Easy 25Medium 112Hard 51
Twitter

53 questions

Easy 8Medium 33Hard 12

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

Easy
Salesforce
25
Twitter
8
Medium
Salesforce
112
Twitter
33
Hard
Salesforce
51
Twitter
12

Top Shared Topics

9 Shared Questions

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

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

Unique to Salesforce (179)

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

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 Twitter (44)

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

ProblemDifficulty
Regular Expression MatchingHard
Multiply StringsMedium
Wildcard MatchingHard
Permutation SequenceHard
Pascal's TriangleEasy
Word Break IIHard
Time Needed to Buy TicketsEasy
Max Points on a LineHard
One Edit DistanceMedium
Happy NumberEasy
Reverse Linked ListEasy
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.

Explore More