•CODING INTERVIEW QUESTIONS
Salesforce Hard Coding Interview Questions (DSA)
14 hard DSA problems sourced from real Salesforce interviews
Salesforce Hard Coding Interview Questions
| Problem | Difficulty | Tags |
|---|---|---|
| Distance to a Cycle in Undirected Graph | Hard | Depth-First SearchBreadth-First SearchGraph Theory |
| Minimum Edge Reversals So Every Node Is Reachable | Hard | Dynamic ProgrammingDepth-First SearchBreadth-First Search |
| Optimal Account Balancing | Hard | ArrayDynamic ProgrammingBacktracking |
| Put Marbles in Bags | Hard | ArrayGreedySorting |
| LFU Cache | Hard | Hash TableLinked ListDesign |
| Strange Printer | Hard | StringDynamic Programming |
| Minimum Replacements to Sort the Array | Hard | ArrayMathGreedy |
| Vertical Order Traversal of a Binary Tree | Hard | Hash TableTreeDepth-First Search |
| Partition Array Into Two Arrays to Minimize Sum Difference | Hard | ArrayTwo PointersBinary Search |
| Hard | Linked ListDivide and ConquerHeap (Priority Queue) | |
| Hard | ArrayTwo PointersDynamic Programming | |
| Minimum Window Substring | Hard | Hash TableStringSliding Window |
| Distinct Subsequences | Hard | StringDynamic Programming |
| Binary Tree Maximum Path Sum | Hard | 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 →