CODING INTERVIEW QUESTIONS

Salesforce Hard Coding Interview Questions (DSA)

14 hard DSA problems sourced from real Salesforce interviews

Salesforce Hard Coding Interview Questions

ProblemDifficultyTags
Distance to a Cycle in Undirected GraphHard
Depth-First SearchBreadth-First SearchGraph Theory
Minimum Edge Reversals So Every Node Is ReachableHard
Dynamic ProgrammingDepth-First SearchBreadth-First Search
Optimal Account BalancingHard
ArrayDynamic ProgrammingBacktracking
Put Marbles in BagsHard
ArrayGreedySorting
LFU CacheHard
Hash TableLinked ListDesign
Strange PrinterHard
StringDynamic Programming
Minimum Replacements to Sort the ArrayHard
ArrayMathGreedy
Vertical Order Traversal of a Binary TreeHard
Hash TableTreeDepth-First Search
Partition Array Into Two Arrays to Minimize Sum DifferenceHard
ArrayTwo PointersBinary Search
Hard
Linked ListDivide and ConquerHeap (Priority Queue)
Hard
ArrayTwo PointersDynamic Programming
Minimum Window SubstringHard
Hash TableStringSliding Window
Distinct SubsequencesHard
StringDynamic Programming
Binary Tree Maximum Path SumHard
Dynamic ProgrammingTreeDepth-First Search

Top Data Structures & Patterns — Hard

Dynamic Programming
7 (50%)
Array
5 (36%)
Depth-First Search
4 (29%)
Breadth-First Search
3 (21%)
Sorting
3 (21%)
Hash Table
3 (21%)
String
3 (21%)
Graph Theory
2 (14%)

Frequently Asked Questions

What hard Salesforce coding questions are most common?

InterviewSkool has 14 hard Salesforce coding questions. Focus on the top 10 to 15 most common problems for the best ROI.

How many hard questions does Salesforce have?

Salesforce has 14 hard coding questions out of 50 total. Hard problems are less common but can appear in senior-level interviews.

Are these Salesforce hard questions free?

Yes. All 14 hard Salesforce coding questions are free to browse. No sign-up required. Filter by topic and click any problem to open it on LeetCode.

Practice with a Mock Interview

Simulate real Salesforce interview pressure with our AI interviewer.

Start Mock Interview →

Other Companies