Salesforce vs Yahoo Interview Questions

Salesforce lists 188 LeetCode interview questions while Yahoo lists 34. They share 15 problems — 8% of Salesforce's bank and 44% of Yahoo's. Focus on the overlap first, then drill into 173 Salesforce-only and 19 Yahoo-only questions.

Read the full Salesforce vs Yahoo preparation guide →

Overview

Salesforce

188 questions

Easy 25Medium 112Hard 51
Yahoo

34 questions

Easy 11Medium 20Hard 3

Preparation Strategy

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

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 Yahoo-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
Yahoo
11
Medium
Salesforce
112
Yahoo
20
Hard
Salesforce
51
Yahoo
3

Top Shared Topics

15 Shared Questions

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

ProblemDifficulty
LRU CacheMedium
Two SumEasy
Top K Frequent ElementsMedium
Word SearchMedium
Median of Two Sorted ArraysHard
Validate Binary Search TreeMedium
Meeting Rooms IIMedium
Search in Rotated Sorted ArrayMedium
Word BreakMedium
Decode StringMedium
Valid ParenthesesEasy
Subarray Sum Equals KMedium
Combination SumMedium
Roman to IntegerEasy
Spiral MatrixMedium

Unique to Salesforce (173)

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

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 Yahoo (19)

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

ProblemDifficulty
Maximum Depth of Binary TreeEasy
Reverse Linked ListEasy
Contains DuplicateEasy
Serialize and Deserialize Binary TreeHard
Largest Palindrome ProductHard
Linked List CycleEasy
Matrix Cells in Distance OrderEasy
Non-decreasing SubsequencesMedium
Maximum Distance in ArraysMedium
Binary Number with Alternating BitsEasy
Peeking IteratorMedium
Palindrome NumberEasy

Frequently Asked Questions

How many LeetCode questions do Salesforce and Yahoo share?

Salesforce and Yahoo share 15 LeetCode interview questions. 173 problems appear only in Salesforce's list and 19 appear only in Yahoo's list.

What topics overlap most between Salesforce and Yahoo?

The most common shared topics between Salesforce and Yahoo are Array (10 shared questions), Hash Table (6 shared questions), String (5 shared questions), Divide and Conquer (2 shared questions), Sorting (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Salesforce or Yahoo?

Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

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

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

Explore More